Best JavaScript code snippet using unexpected
utf8-invalid-encoding.wast.js
Source:utf8-invalid-encoding.wast.js
...14 */15// ./test/core/utf8-invalid-encoding.wast16// ./test/core/utf8-invalid-encoding.wast:117assert_malformed(18 () => instantiate(`(func (export "\\00\\00\\fe\\ff")) `),19 `malformed UTF-8 encoding`,20);21// ./test/core/utf8-invalid-encoding.wast:222assert_malformed(23 () => instantiate(`(func (export "\\80")) `),24 `malformed UTF-8 encoding`,25);26// ./test/core/utf8-invalid-encoding.wast:327assert_malformed(28 () => instantiate(`(func (export "\\8f")) `),29 `malformed UTF-8 encoding`,30);31// ./test/core/utf8-invalid-encoding.wast:432assert_malformed(33 () => instantiate(`(func (export "\\90")) `),34 `malformed UTF-8 encoding`,35);36// ./test/core/utf8-invalid-encoding.wast:537assert_malformed(38 () => instantiate(`(func (export "\\9f")) `),39 `malformed UTF-8 encoding`,40);41// ./test/core/utf8-invalid-encoding.wast:642assert_malformed(43 () => instantiate(`(func (export "\\a0")) `),44 `malformed UTF-8 encoding`,45);46// ./test/core/utf8-invalid-encoding.wast:747assert_malformed(48 () => instantiate(`(func (export "\\bf")) `),49 `malformed UTF-8 encoding`,50);51// ./test/core/utf8-invalid-encoding.wast:852assert_malformed(53 () => instantiate(`(func (export "\\c0\\80")) `),54 `malformed UTF-8 encoding`,55);56// ./test/core/utf8-invalid-encoding.wast:957assert_malformed(58 () => instantiate(`(func (export "\\c0\\bf")) `),59 `malformed UTF-8 encoding`,60);61// ./test/core/utf8-invalid-encoding.wast:1062assert_malformed(63 () => instantiate(`(func (export "\\c1\\80")) `),64 `malformed UTF-8 encoding`,65);66// ./test/core/utf8-invalid-encoding.wast:1167assert_malformed(68 () => instantiate(`(func (export "\\c1\\bf")) `),69 `malformed UTF-8 encoding`,70);71// ./test/core/utf8-invalid-encoding.wast:1272assert_malformed(73 () => instantiate(`(func (export "\\c2\\00")) `),74 `malformed UTF-8 encoding`,75);76// ./test/core/utf8-invalid-encoding.wast:1377assert_malformed(78 () => instantiate(`(func (export "\\c2\\2e")) `),79 `malformed UTF-8 encoding`,80);81// ./test/core/utf8-invalid-encoding.wast:1482assert_malformed(83 () => instantiate(`(func (export "\\c2\\7f")) `),84 `malformed UTF-8 encoding`,85);86// ./test/core/utf8-invalid-encoding.wast:1587assert_malformed(88 () => instantiate(`(func (export "\\c2\\80\\80")) `),89 `malformed UTF-8 encoding`,90);91// ./test/core/utf8-invalid-encoding.wast:1692assert_malformed(93 () => instantiate(`(func (export "\\c2\\c0")) `),94 `malformed UTF-8 encoding`,95);96// ./test/core/utf8-invalid-encoding.wast:1797assert_malformed(98 () => instantiate(`(func (export "\\c2")) `),99 `malformed UTF-8 encoding`,100);101// ./test/core/utf8-invalid-encoding.wast:18102assert_malformed(103 () => instantiate(`(func (export "\\c2\\fd")) `),104 `malformed UTF-8 encoding`,105);106// ./test/core/utf8-invalid-encoding.wast:19107assert_malformed(108 () => instantiate(`(func (export "\\df\\00")) `),109 `malformed UTF-8 encoding`,110);111// ./test/core/utf8-invalid-encoding.wast:20112assert_malformed(113 () => instantiate(`(func (export "\\df\\7f")) `),114 `malformed UTF-8 encoding`,115);116// ./test/core/utf8-invalid-encoding.wast:21117assert_malformed(118 () => instantiate(`(func (export "\\df\\c0")) `),119 `malformed UTF-8 encoding`,120);121// ./test/core/utf8-invalid-encoding.wast:22122assert_malformed(123 () => instantiate(`(func (export "\\df\\fd")) `),124 `malformed UTF-8 encoding`,125);126// ./test/core/utf8-invalid-encoding.wast:23127assert_malformed(128 () => instantiate(`(func (export "\\e0\\00\\a0")) `),129 `malformed UTF-8 encoding`,130);131// ./test/core/utf8-invalid-encoding.wast:24132assert_malformed(133 () => instantiate(`(func (export "\\e0\\7f\\a0")) `),134 `malformed UTF-8 encoding`,135);136// ./test/core/utf8-invalid-encoding.wast:25137assert_malformed(138 () => instantiate(`(func (export "\\e0\\80\\80")) `),139 `malformed UTF-8 encoding`,140);141// ./test/core/utf8-invalid-encoding.wast:26142assert_malformed(143 () => instantiate(`(func (export "\\e0\\80\\a0")) `),144 `malformed UTF-8 encoding`,145);146// ./test/core/utf8-invalid-encoding.wast:27147assert_malformed(148 () => instantiate(`(func (export "\\e0\\9f\\a0")) `),149 `malformed UTF-8 encoding`,150);151// ./test/core/utf8-invalid-encoding.wast:28152assert_malformed(153 () => instantiate(`(func (export "\\e0\\9f\\bf")) `),154 `malformed UTF-8 encoding`,155);156// ./test/core/utf8-invalid-encoding.wast:29157assert_malformed(158 () => instantiate(`(func (export "\\e0\\a0\\00")) `),159 `malformed UTF-8 encoding`,160);161// ./test/core/utf8-invalid-encoding.wast:30162assert_malformed(163 () => instantiate(`(func (export "\\e0\\a0\\7f")) `),164 `malformed UTF-8 encoding`,165);166// ./test/core/utf8-invalid-encoding.wast:31167assert_malformed(168 () => instantiate(`(func (export "\\e0\\a0\\c0")) `),169 `malformed UTF-8 encoding`,170);171// ./test/core/utf8-invalid-encoding.wast:32172assert_malformed(173 () => instantiate(`(func (export "\\e0\\a0\\fd")) `),174 `malformed UTF-8 encoding`,175);176// ./test/core/utf8-invalid-encoding.wast:33177assert_malformed(178 () => instantiate(`(func (export "\\e0\\c0\\a0")) `),179 `malformed UTF-8 encoding`,180);181// ./test/core/utf8-invalid-encoding.wast:34182assert_malformed(183 () => instantiate(`(func (export "\\e0\\fd\\a0")) `),184 `malformed UTF-8 encoding`,185);186// ./test/core/utf8-invalid-encoding.wast:35187assert_malformed(188 () => instantiate(`(func (export "\\e1\\00\\80")) `),189 `malformed UTF-8 encoding`,190);191// ./test/core/utf8-invalid-encoding.wast:36192assert_malformed(193 () => instantiate(`(func (export "\\e1\\2e")) `),194 `malformed UTF-8 encoding`,195);196// ./test/core/utf8-invalid-encoding.wast:37197assert_malformed(198 () => instantiate(`(func (export "\\e1\\7f\\80")) `),199 `malformed UTF-8 encoding`,200);201// ./test/core/utf8-invalid-encoding.wast:38202assert_malformed(203 () => instantiate(`(func (export "\\e1\\80\\00")) `),204 `malformed UTF-8 encoding`,205);206// ./test/core/utf8-invalid-encoding.wast:39207assert_malformed(208 () => instantiate(`(func (export "\\e1\\80\\2e")) `),209 `malformed UTF-8 encoding`,210);211// ./test/core/utf8-invalid-encoding.wast:40212assert_malformed(213 () => instantiate(`(func (export "\\e1\\80\\7f")) `),214 `malformed UTF-8 encoding`,215);216// ./test/core/utf8-invalid-encoding.wast:41217assert_malformed(218 () => instantiate(`(func (export "\\e1\\80\\80\\80")) `),219 `malformed UTF-8 encoding`,220);221// ./test/core/utf8-invalid-encoding.wast:42222assert_malformed(223 () => instantiate(`(func (export "\\e1\\80\\c0")) `),224 `malformed UTF-8 encoding`,225);226// ./test/core/utf8-invalid-encoding.wast:43227assert_malformed(228 () => instantiate(`(func (export "\\e1\\80")) `),229 `malformed UTF-8 encoding`,230);231// ./test/core/utf8-invalid-encoding.wast:44232assert_malformed(233 () => instantiate(`(func (export "\\e1\\80\\fd")) `),234 `malformed UTF-8 encoding`,235);236// ./test/core/utf8-invalid-encoding.wast:45237assert_malformed(238 () => instantiate(`(func (export "\\e1\\c0\\80")) `),239 `malformed UTF-8 encoding`,240);241// ./test/core/utf8-invalid-encoding.wast:46242assert_malformed(243 () => instantiate(`(func (export "\\e1")) `),244 `malformed UTF-8 encoding`,245);246// ./test/core/utf8-invalid-encoding.wast:47247assert_malformed(248 () => instantiate(`(func (export "\\e1\\fd\\80")) `),249 `malformed UTF-8 encoding`,250);251// ./test/core/utf8-invalid-encoding.wast:48252assert_malformed(253 () => instantiate(`(func (export "\\ec\\00\\80")) `),254 `malformed UTF-8 encoding`,255);256// ./test/core/utf8-invalid-encoding.wast:49257assert_malformed(258 () => instantiate(`(func (export "\\ec\\7f\\80")) `),259 `malformed UTF-8 encoding`,260);261// ./test/core/utf8-invalid-encoding.wast:50262assert_malformed(263 () => instantiate(`(func (export "\\ec\\80\\00")) `),264 `malformed UTF-8 encoding`,265);266// ./test/core/utf8-invalid-encoding.wast:51267assert_malformed(268 () => instantiate(`(func (export "\\ec\\80\\7f")) `),269 `malformed UTF-8 encoding`,270);271// ./test/core/utf8-invalid-encoding.wast:52272assert_malformed(273 () => instantiate(`(func (export "\\ec\\80\\c0")) `),274 `malformed UTF-8 encoding`,275);276// ./test/core/utf8-invalid-encoding.wast:53277assert_malformed(278 () => instantiate(`(func (export "\\ec\\80\\fd")) `),279 `malformed UTF-8 encoding`,280);281// ./test/core/utf8-invalid-encoding.wast:54282assert_malformed(283 () => instantiate(`(func (export "\\ec\\c0\\80")) `),284 `malformed UTF-8 encoding`,285);286// ./test/core/utf8-invalid-encoding.wast:55287assert_malformed(288 () => instantiate(`(func (export "\\ec\\fd\\80")) `),289 `malformed UTF-8 encoding`,290);291// ./test/core/utf8-invalid-encoding.wast:56292assert_malformed(293 () => instantiate(`(func (export "\\ed\\00\\80")) `),294 `malformed UTF-8 encoding`,295);296// ./test/core/utf8-invalid-encoding.wast:57297assert_malformed(298 () => instantiate(`(func (export "\\ed\\7f\\80")) `),299 `malformed UTF-8 encoding`,300);301// ./test/core/utf8-invalid-encoding.wast:58302assert_malformed(303 () => instantiate(`(func (export "\\ed\\80\\00")) `),304 `malformed UTF-8 encoding`,305);306// ./test/core/utf8-invalid-encoding.wast:59307assert_malformed(308 () => instantiate(`(func (export "\\ed\\80\\7f")) `),309 `malformed UTF-8 encoding`,310);311// ./test/core/utf8-invalid-encoding.wast:60312assert_malformed(313 () => instantiate(`(func (export "\\ed\\80\\c0")) `),314 `malformed UTF-8 encoding`,315);316// ./test/core/utf8-invalid-encoding.wast:61317assert_malformed(318 () => instantiate(`(func (export "\\ed\\80\\fd")) `),319 `malformed UTF-8 encoding`,320);321// ./test/core/utf8-invalid-encoding.wast:62322assert_malformed(323 () => instantiate(`(func (export "\\ed\\a0\\80")) `),324 `malformed UTF-8 encoding`,325);326// ./test/core/utf8-invalid-encoding.wast:63327assert_malformed(328 () => instantiate(`(func (export "\\ed\\a0\\bf")) `),329 `malformed UTF-8 encoding`,330);331// ./test/core/utf8-invalid-encoding.wast:64332assert_malformed(333 () => instantiate(`(func (export "\\ed\\bf\\80")) `),334 `malformed UTF-8 encoding`,335);336// ./test/core/utf8-invalid-encoding.wast:65337assert_malformed(338 () => instantiate(`(func (export "\\ed\\bf\\bf")) `),339 `malformed UTF-8 encoding`,340);341// ./test/core/utf8-invalid-encoding.wast:66342assert_malformed(343 () => instantiate(`(func (export "\\ed\\c0\\80")) `),344 `malformed UTF-8 encoding`,345);346// ./test/core/utf8-invalid-encoding.wast:67347assert_malformed(348 () => instantiate(`(func (export "\\ed\\fd\\80")) `),349 `malformed UTF-8 encoding`,350);351// ./test/core/utf8-invalid-encoding.wast:68352assert_malformed(353 () => instantiate(`(func (export "\\ee\\00\\80")) `),354 `malformed UTF-8 encoding`,355);356// ./test/core/utf8-invalid-encoding.wast:69357assert_malformed(358 () => instantiate(`(func (export "\\ee\\7f\\80")) `),359 `malformed UTF-8 encoding`,360);361// ./test/core/utf8-invalid-encoding.wast:70362assert_malformed(363 () => instantiate(`(func (export "\\ee\\80\\00")) `),364 `malformed UTF-8 encoding`,365);366// ./test/core/utf8-invalid-encoding.wast:71367assert_malformed(368 () => instantiate(`(func (export "\\ee\\80\\7f")) `),369 `malformed UTF-8 encoding`,370);371// ./test/core/utf8-invalid-encoding.wast:72372assert_malformed(373 () => instantiate(`(func (export "\\ee\\80\\c0")) `),374 `malformed UTF-8 encoding`,375);376// ./test/core/utf8-invalid-encoding.wast:73377assert_malformed(378 () => instantiate(`(func (export "\\ee\\80\\fd")) `),379 `malformed UTF-8 encoding`,380);381// ./test/core/utf8-invalid-encoding.wast:74382assert_malformed(383 () => instantiate(`(func (export "\\ee\\c0\\80")) `),384 `malformed UTF-8 encoding`,385);386// ./test/core/utf8-invalid-encoding.wast:75387assert_malformed(388 () => instantiate(`(func (export "\\ee\\fd\\80")) `),389 `malformed UTF-8 encoding`,390);391// ./test/core/utf8-invalid-encoding.wast:76392assert_malformed(393 () => instantiate(`(func (export "\\ef\\00\\80")) `),394 `malformed UTF-8 encoding`,395);396// ./test/core/utf8-invalid-encoding.wast:77397assert_malformed(398 () => instantiate(`(func (export "\\ef\\7f\\80")) `),399 `malformed UTF-8 encoding`,400);401// ./test/core/utf8-invalid-encoding.wast:78402assert_malformed(403 () => instantiate(`(func (export "\\ef\\80\\00")) `),404 `malformed UTF-8 encoding`,405);406// ./test/core/utf8-invalid-encoding.wast:79407assert_malformed(408 () => instantiate(`(func (export "\\ef\\80\\7f")) `),409 `malformed UTF-8 encoding`,410);411// ./test/core/utf8-invalid-encoding.wast:80412assert_malformed(413 () => instantiate(`(func (export "\\ef\\80\\c0")) `),414 `malformed UTF-8 encoding`,415);416// ./test/core/utf8-invalid-encoding.wast:81417assert_malformed(418 () => instantiate(`(func (export "\\ef\\80\\fd")) `),419 `malformed UTF-8 encoding`,420);421// ./test/core/utf8-invalid-encoding.wast:82422assert_malformed(423 () => instantiate(`(func (export "\\ef\\c0\\80")) `),424 `malformed UTF-8 encoding`,425);426// ./test/core/utf8-invalid-encoding.wast:83427assert_malformed(428 () => instantiate(`(func (export "\\ef\\fd\\80")) `),429 `malformed UTF-8 encoding`,430);431// ./test/core/utf8-invalid-encoding.wast:84432assert_malformed(433 () => instantiate(`(func (export "\\f0\\00\\90\\90")) `),434 `malformed UTF-8 encoding`,435);436// ./test/core/utf8-invalid-encoding.wast:85437assert_malformed(438 () => instantiate(`(func (export "\\f0\\7f\\90\\90")) `),439 `malformed UTF-8 encoding`,440);441// ./test/core/utf8-invalid-encoding.wast:86442assert_malformed(443 () => instantiate(`(func (export "\\f0\\80\\80\\80")) `),444 `malformed UTF-8 encoding`,445);446// ./test/core/utf8-invalid-encoding.wast:87447assert_malformed(448 () => instantiate(`(func (export "\\f0\\80\\90\\90")) `),449 `malformed UTF-8 encoding`,450);451// ./test/core/utf8-invalid-encoding.wast:88452assert_malformed(453 () => instantiate(`(func (export "\\f0\\8f\\90\\90")) `),454 `malformed UTF-8 encoding`,455);456// ./test/core/utf8-invalid-encoding.wast:89457assert_malformed(458 () => instantiate(`(func (export "\\f0\\8f\\bf\\bf")) `),459 `malformed UTF-8 encoding`,460);461// ./test/core/utf8-invalid-encoding.wast:90462assert_malformed(463 () => instantiate(`(func (export "\\f0\\90\\00\\90")) `),464 `malformed UTF-8 encoding`,465);466// ./test/core/utf8-invalid-encoding.wast:91467assert_malformed(468 () => instantiate(`(func (export "\\f0\\90\\7f\\90")) `),469 `malformed UTF-8 encoding`,470);471// ./test/core/utf8-invalid-encoding.wast:92472assert_malformed(473 () => instantiate(`(func (export "\\f0\\90\\90\\00")) `),474 `malformed UTF-8 encoding`,475);476// ./test/core/utf8-invalid-encoding.wast:93477assert_malformed(478 () => instantiate(`(func (export "\\f0\\90\\90\\7f")) `),479 `malformed UTF-8 encoding`,480);481// ./test/core/utf8-invalid-encoding.wast:94482assert_malformed(483 () => instantiate(`(func (export "\\f0\\90\\90\\c0")) `),484 `malformed UTF-8 encoding`,485);486// ./test/core/utf8-invalid-encoding.wast:95487assert_malformed(488 () => instantiate(`(func (export "\\f0\\90\\90\\fd")) `),489 `malformed UTF-8 encoding`,490);491// ./test/core/utf8-invalid-encoding.wast:96492assert_malformed(493 () => instantiate(`(func (export "\\f0\\90\\c0\\90")) `),494 `malformed UTF-8 encoding`,495);496// ./test/core/utf8-invalid-encoding.wast:97497assert_malformed(498 () => instantiate(`(func (export "\\f0\\90\\fd\\90")) `),499 `malformed UTF-8 encoding`,500);501// ./test/core/utf8-invalid-encoding.wast:98502assert_malformed(503 () => instantiate(`(func (export "\\f0\\c0\\90\\90")) `),504 `malformed UTF-8 encoding`,505);506// ./test/core/utf8-invalid-encoding.wast:99507assert_malformed(508 () => instantiate(`(func (export "\\f0\\fd\\90\\90")) `),509 `malformed UTF-8 encoding`,510);511// ./test/core/utf8-invalid-encoding.wast:100512assert_malformed(513 () => instantiate(`(func (export "\\f1\\00\\80\\80")) `),514 `malformed UTF-8 encoding`,515);516// ./test/core/utf8-invalid-encoding.wast:101517assert_malformed(518 () => instantiate(`(func (export "\\f1\\23")) `),519 `malformed UTF-8 encoding`,520);521// ./test/core/utf8-invalid-encoding.wast:102522assert_malformed(523 () => instantiate(`(func (export "\\f1\\7f\\80\\80")) `),524 `malformed UTF-8 encoding`,525);526// ./test/core/utf8-invalid-encoding.wast:103527assert_malformed(528 () => instantiate(`(func (export "\\f1\\80\\00\\80")) `),529 `malformed UTF-8 encoding`,530);531// ./test/core/utf8-invalid-encoding.wast:104532assert_malformed(533 () => instantiate(`(func (export "\\f1\\80\\23")) `),534 `malformed UTF-8 encoding`,535);536// ./test/core/utf8-invalid-encoding.wast:105537assert_malformed(538 () => instantiate(`(func (export "\\f1\\80\\7f\\80")) `),539 `malformed UTF-8 encoding`,540);541// ./test/core/utf8-invalid-encoding.wast:106542assert_malformed(543 () => instantiate(`(func (export "\\f1\\80\\80\\00")) `),544 `malformed UTF-8 encoding`,545);546// ./test/core/utf8-invalid-encoding.wast:107547assert_malformed(548 () => instantiate(`(func (export "\\f1\\80\\80\\23")) `),549 `malformed UTF-8 encoding`,550);551// ./test/core/utf8-invalid-encoding.wast:108552assert_malformed(553 () => instantiate(`(func (export "\\f1\\80\\80\\7f")) `),554 `malformed UTF-8 encoding`,555);556// ./test/core/utf8-invalid-encoding.wast:109557assert_malformed(558 () => instantiate(`(func (export "\\f1\\80\\80\\80\\80")) `),559 `malformed UTF-8 encoding`,560);561// ./test/core/utf8-invalid-encoding.wast:110562assert_malformed(563 () => instantiate(`(func (export "\\f1\\80\\80\\c0")) `),564 `malformed UTF-8 encoding`,565);566// ./test/core/utf8-invalid-encoding.wast:111567assert_malformed(568 () => instantiate(`(func (export "\\f1\\80\\80")) `),569 `malformed UTF-8 encoding`,570);571// ./test/core/utf8-invalid-encoding.wast:112572assert_malformed(573 () => instantiate(`(func (export "\\f1\\80\\80\\fd")) `),574 `malformed UTF-8 encoding`,575);576// ./test/core/utf8-invalid-encoding.wast:113577assert_malformed(578 () => instantiate(`(func (export "\\f1\\80\\c0\\80")) `),579 `malformed UTF-8 encoding`,580);581// ./test/core/utf8-invalid-encoding.wast:114582assert_malformed(583 () => instantiate(`(func (export "\\f1\\80")) `),584 `malformed UTF-8 encoding`,585);586// ./test/core/utf8-invalid-encoding.wast:115587assert_malformed(588 () => instantiate(`(func (export "\\f1\\80\\fd\\80")) `),589 `malformed UTF-8 encoding`,590);591// ./test/core/utf8-invalid-encoding.wast:116592assert_malformed(593 () => instantiate(`(func (export "\\f1\\c0\\80\\80")) `),594 `malformed UTF-8 encoding`,595);596// ./test/core/utf8-invalid-encoding.wast:117597assert_malformed(598 () => instantiate(`(func (export "\\f1")) `),599 `malformed UTF-8 encoding`,600);601// ./test/core/utf8-invalid-encoding.wast:118602assert_malformed(603 () => instantiate(`(func (export "\\f1\\fd\\80\\80")) `),604 `malformed UTF-8 encoding`,605);606// ./test/core/utf8-invalid-encoding.wast:119607assert_malformed(608 () => instantiate(`(func (export "\\f3\\00\\80\\80")) `),609 `malformed UTF-8 encoding`,610);611// ./test/core/utf8-invalid-encoding.wast:120612assert_malformed(613 () => instantiate(`(func (export "\\f3\\7f\\80\\80")) `),614 `malformed UTF-8 encoding`,615);616// ./test/core/utf8-invalid-encoding.wast:121617assert_malformed(618 () => instantiate(`(func (export "\\f3\\80\\00\\80")) `),619 `malformed UTF-8 encoding`,620);621// ./test/core/utf8-invalid-encoding.wast:122622assert_malformed(623 () => instantiate(`(func (export "\\f3\\80\\7f\\80")) `),624 `malformed UTF-8 encoding`,625);626// ./test/core/utf8-invalid-encoding.wast:123627assert_malformed(628 () => instantiate(`(func (export "\\f3\\80\\80\\00")) `),629 `malformed UTF-8 encoding`,630);631// ./test/core/utf8-invalid-encoding.wast:124632assert_malformed(633 () => instantiate(`(func (export "\\f3\\80\\80\\7f")) `),634 `malformed UTF-8 encoding`,635);636// ./test/core/utf8-invalid-encoding.wast:125637assert_malformed(638 () => instantiate(`(func (export "\\f3\\80\\80\\c0")) `),639 `malformed UTF-8 encoding`,640);641// ./test/core/utf8-invalid-encoding.wast:126642assert_malformed(643 () => instantiate(`(func (export "\\f3\\80\\80\\fd")) `),644 `malformed UTF-8 encoding`,645);646// ./test/core/utf8-invalid-encoding.wast:127647assert_malformed(648 () => instantiate(`(func (export "\\f3\\80\\c0\\80")) `),649 `malformed UTF-8 encoding`,650);651// ./test/core/utf8-invalid-encoding.wast:128652assert_malformed(653 () => instantiate(`(func (export "\\f3\\80\\fd\\80")) `),654 `malformed UTF-8 encoding`,655);656// ./test/core/utf8-invalid-encoding.wast:129657assert_malformed(658 () => instantiate(`(func (export "\\f3\\c0\\80\\80")) `),659 `malformed UTF-8 encoding`,660);661// ./test/core/utf8-invalid-encoding.wast:130662assert_malformed(663 () => instantiate(`(func (export "\\f3\\fd\\80\\80")) `),664 `malformed UTF-8 encoding`,665);666// ./test/core/utf8-invalid-encoding.wast:131667assert_malformed(668 () => instantiate(`(func (export "\\f4\\00\\80\\80")) `),669 `malformed UTF-8 encoding`,670);671// ./test/core/utf8-invalid-encoding.wast:132672assert_malformed(673 () => instantiate(`(func (export "\\f4\\7f\\80\\80")) `),674 `malformed UTF-8 encoding`,675);676// ./test/core/utf8-invalid-encoding.wast:133677assert_malformed(678 () => instantiate(`(func (export "\\f4\\80\\00\\80")) `),679 `malformed UTF-8 encoding`,680);681// ./test/core/utf8-invalid-encoding.wast:134682assert_malformed(683 () => instantiate(`(func (export "\\f4\\80\\7f\\80")) `),684 `malformed UTF-8 encoding`,685);686// ./test/core/utf8-invalid-encoding.wast:135687assert_malformed(688 () => instantiate(`(func (export "\\f4\\80\\80\\00")) `),689 `malformed UTF-8 encoding`,690);691// ./test/core/utf8-invalid-encoding.wast:136692assert_malformed(693 () => instantiate(`(func (export "\\f4\\80\\80\\7f")) `),694 `malformed UTF-8 encoding`,695);696// ./test/core/utf8-invalid-encoding.wast:137697assert_malformed(698 () => instantiate(`(func (export "\\f4\\80\\80\\c0")) `),699 `malformed UTF-8 encoding`,700);701// ./test/core/utf8-invalid-encoding.wast:138702assert_malformed(703 () => instantiate(`(func (export "\\f4\\80\\80\\fd")) `),704 `malformed UTF-8 encoding`,705);706// ./test/core/utf8-invalid-encoding.wast:139707assert_malformed(708 () => instantiate(`(func (export "\\f4\\80\\c0\\80")) `),709 `malformed UTF-8 encoding`,710);711// ./test/core/utf8-invalid-encoding.wast:140712assert_malformed(713 () => instantiate(`(func (export "\\f4\\80\\fd\\80")) `),714 `malformed UTF-8 encoding`,715);716// ./test/core/utf8-invalid-encoding.wast:141717assert_malformed(718 () => instantiate(`(func (export "\\f4\\90\\80\\80")) `),719 `malformed UTF-8 encoding`,720);721// ./test/core/utf8-invalid-encoding.wast:142722assert_malformed(723 () => instantiate(`(func (export "\\f4\\bf\\80\\80")) `),724 `malformed UTF-8 encoding`,725);726// ./test/core/utf8-invalid-encoding.wast:143727assert_malformed(728 () => instantiate(`(func (export "\\f4\\c0\\80\\80")) `),729 `malformed UTF-8 encoding`,730);731// ./test/core/utf8-invalid-encoding.wast:144732assert_malformed(733 () => instantiate(`(func (export "\\f4\\fd\\80\\80")) `),734 `malformed UTF-8 encoding`,735);736// ./test/core/utf8-invalid-encoding.wast:145737assert_malformed(738 () => instantiate(`(func (export "\\f5\\80\\80\\80")) `),739 `malformed UTF-8 encoding`,740);741// ./test/core/utf8-invalid-encoding.wast:146742assert_malformed(743 () => instantiate(`(func (export "\\f7\\80\\80\\80")) `),744 `malformed UTF-8 encoding`,745);746// ./test/core/utf8-invalid-encoding.wast:147747assert_malformed(748 () => instantiate(`(func (export "\\f7\\bf\\bf\\bf")) `),749 `malformed UTF-8 encoding`,750);751// ./test/core/utf8-invalid-encoding.wast:148752assert_malformed(753 () => instantiate(`(func (export "\\f8\\23")) `),754 `malformed UTF-8 encoding`,755);756// ./test/core/utf8-invalid-encoding.wast:149757assert_malformed(758 () => instantiate(`(func (export "\\f8\\80\\23")) `),759 `malformed UTF-8 encoding`,760);761// ./test/core/utf8-invalid-encoding.wast:150762assert_malformed(763 () => instantiate(`(func (export "\\f8\\80\\80\\23")) `),764 `malformed UTF-8 encoding`,765);766// ./test/core/utf8-invalid-encoding.wast:151767assert_malformed(768 () => instantiate(`(func (export "\\f8\\80\\80\\80\\23")) `),769 `malformed UTF-8 encoding`,770);771// ./test/core/utf8-invalid-encoding.wast:152772assert_malformed(773 () => instantiate(`(func (export "\\f8\\80\\80\\80\\80\\80")) `),774 `malformed UTF-8 encoding`,775);776// ./test/core/utf8-invalid-encoding.wast:153777assert_malformed(778 () => instantiate(`(func (export "\\f8\\80\\80\\80\\80")) `),779 `malformed UTF-8 encoding`,780);781// ./test/core/utf8-invalid-encoding.wast:154782assert_malformed(783 () => instantiate(`(func (export "\\f8\\80\\80\\80")) `),784 `malformed UTF-8 encoding`,785);786// ./test/core/utf8-invalid-encoding.wast:155787assert_malformed(788 () => instantiate(`(func (export "\\f8\\80\\80")) `),789 `malformed UTF-8 encoding`,790);791// ./test/core/utf8-invalid-encoding.wast:156792assert_malformed(793 () => instantiate(`(func (export "\\f8\\80")) `),794 `malformed UTF-8 encoding`,795);796// ./test/core/utf8-invalid-encoding.wast:157797assert_malformed(798 () => instantiate(`(func (export "\\f8")) `),799 `malformed UTF-8 encoding`,800);801// ./test/core/utf8-invalid-encoding.wast:158802assert_malformed(803 () => instantiate(`(func (export "\\fb\\bf\\bf\\bf\\bf")) `),804 `malformed UTF-8 encoding`,805);806// ./test/core/utf8-invalid-encoding.wast:159807assert_malformed(808 () => instantiate(`(func (export "\\fc\\23")) `),809 `malformed UTF-8 encoding`,810);811// ./test/core/utf8-invalid-encoding.wast:160812assert_malformed(813 () => instantiate(`(func (export "\\fc\\80\\23")) `),814 `malformed UTF-8 encoding`,815);816// ./test/core/utf8-invalid-encoding.wast:161817assert_malformed(818 () => instantiate(`(func (export "\\fc\\80\\80\\23")) `),819 `malformed UTF-8 encoding`,820);821// ./test/core/utf8-invalid-encoding.wast:162822assert_malformed(823 () => instantiate(`(func (export "\\fc\\80\\80\\80\\23")) `),824 `malformed UTF-8 encoding`,825);826// ./test/core/utf8-invalid-encoding.wast:163827assert_malformed(828 () => instantiate(`(func (export "\\fc\\80\\80\\80\\80\\23")) `),829 `malformed UTF-8 encoding`,830);831// ./test/core/utf8-invalid-encoding.wast:164832assert_malformed(833 () => instantiate(`(func (export "\\fc\\80\\80\\80\\80\\80\\80")) `),834 `malformed UTF-8 encoding`,835);836// ./test/core/utf8-invalid-encoding.wast:165837assert_malformed(838 () => instantiate(`(func (export "\\fc\\80\\80\\80\\80\\80")) `),839 `malformed UTF-8 encoding`,840);841// ./test/core/utf8-invalid-encoding.wast:166842assert_malformed(843 () => instantiate(`(func (export "\\fc\\80\\80\\80\\80")) `),844 `malformed UTF-8 encoding`,845);846// ./test/core/utf8-invalid-encoding.wast:167847assert_malformed(848 () => instantiate(`(func (export "\\fc\\80\\80\\80")) `),849 `malformed UTF-8 encoding`,850);851// ./test/core/utf8-invalid-encoding.wast:168852assert_malformed(853 () => instantiate(`(func (export "\\fc\\80\\80")) `),854 `malformed UTF-8 encoding`,855);856// ./test/core/utf8-invalid-encoding.wast:169857assert_malformed(858 () => instantiate(`(func (export "\\fc\\80")) `),859 `malformed UTF-8 encoding`,860);861// ./test/core/utf8-invalid-encoding.wast:170862assert_malformed(863 () => instantiate(`(func (export "\\fc")) `),864 `malformed UTF-8 encoding`,865);866// ./test/core/utf8-invalid-encoding.wast:171867assert_malformed(868 () => instantiate(`(func (export "\\fd\\bf\\bf\\bf\\bf\\bf")) `),869 `malformed UTF-8 encoding`,870);871// ./test/core/utf8-invalid-encoding.wast:172872assert_malformed(873 () => instantiate(`(func (export "\\fe")) `),874 `malformed UTF-8 encoding`,875);876// ./test/core/utf8-invalid-encoding.wast:173877assert_malformed(878 () => instantiate(`(func (export "\\fe\\ff")) `),879 `malformed UTF-8 encoding`,880);881// ./test/core/utf8-invalid-encoding.wast:174882assert_malformed(883 () => instantiate(`(func (export "\\ff")) `),884 `malformed UTF-8 encoding`,885);886// ./test/core/utf8-invalid-encoding.wast:175887assert_malformed(888 () => instantiate(`(func (export "\\ff\\fe\\00\\00")) `),889 `malformed UTF-8 encoding`,890);891// ./test/core/utf8-invalid-encoding.wast:176892assert_malformed(893 () => instantiate(`(func (export "\\ff\\fe")) `),894 `malformed UTF-8 encoding`,...
GeraMoedas.js
Source:GeraMoedas.js
12#pragma strict3var Aleatorio: int;4var Objeto: GameObject;5var feliz: GameObject;6var triste: GameObject;7var posicaoUltimaMoedaCriada: int;8var ditanciaMoedaAlvo: int;9var felizTristeNenhuma: int;10var grupo: int;11var pista1: float;12var pista2: float;13var pista3: float;14var pista4: float;15var pista5: float;16pista1 = 8.584;17pista2 = 4.668;18pista3 = 0.752;19pista4 = -3.164;20pista5 = -7.08;21function Start () {22 posicaoUltimaMoedaCriada=0;23}24function Update () {25 if(posicaoUltimaMoedaCriada<transform.position.x){26 ditanciaMoedaAlvo = Random.Range(30,50);27 felizTristeNenhuma = Random.Range(1,6);28 if(felizTristeNenhuma==1){29 posicaoUltimaMoedaCriada = transform.position.x+ditanciaMoedaAlvo;30 //gera nenhuma moeda31 }else if(felizTristeNenhuma==2){32 posicaoUltimaMoedaCriada = transform.position.x+ditanciaMoedaAlvo;33 geraMoedasFeliz();34 }else if(felizTristeNenhuma==3){35 posicaoUltimaMoedaCriada = transform.position.x+ditanciaMoedaAlvo;36 geraMoedasTriste();37 }else if(felizTristeNenhuma==4){38 posicaoUltimaMoedaCriada = transform.position.x+ditanciaMoedaAlvo;39 geraMoedasTristeFeliz();40 }else if(felizTristeNenhuma==5){41 posicaoUltimaMoedaCriada = transform.position.x+ditanciaMoedaAlvo;42 geraMoedasTristeImpares();43 }44 }45}46function gera5FelizFrente () {47 Objeto = Instantiate(feliz, transform.position+transform.up*1+transform.forward*ditanciaMoedaAlvo, Quaternion.identity);48 Objeto = Instantiate(feliz, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+2), Quaternion.identity);49 Objeto = Instantiate(feliz, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+4), Quaternion.identity);50 Objeto = Instantiate(feliz, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+6), Quaternion.identity);51 Objeto = Instantiate(feliz, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+8), Quaternion.identity);52}53function gera3Felizemtodasfileiras () {54 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista1), Quaternion.identity);55 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista1), Quaternion.identity);56 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista1), Quaternion.identity);57 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);58 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista3), Quaternion.identity);59 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista3), Quaternion.identity);60 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista5), Quaternion.identity);61 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista5), Quaternion.identity);62 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista5), Quaternion.identity);63}64function gera3FelizUmaemcimadaoutraMeio () {65 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);66 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista3), Quaternion.identity);67}68function gera5Felizemtodasfileiras () {69 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista1), Quaternion.identity);70 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista1), Quaternion.identity);71 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista1), Quaternion.identity);72 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+6), transform.position.y+1, pista1), Quaternion.identity);73 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+8), transform.position.y+1, pista1), Quaternion.identity);74 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);75 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista3), Quaternion.identity);76 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista3), Quaternion.identity);77 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+6), transform.position.y+1, pista3), Quaternion.identity);78 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+8), transform.position.y+1, pista3), Quaternion.identity);79 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista5), Quaternion.identity);80 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista5), Quaternion.identity);81 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista5), Quaternion.identity);82 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+6), transform.position.y+1, pista5), Quaternion.identity);83 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+8), transform.position.y+1, pista5), Quaternion.identity);84}85function gera3FelizTodasFileiraUmaemcimadaoutra () {86 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista1), Quaternion.identity);87 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista1), Quaternion.identity);88 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);89 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista3), Quaternion.identity);90 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista5), Quaternion.identity);91 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista5), Quaternion.identity);92}93function geraMoedasFeliz() {94 grupo = Random.Range(1,6);95 if(grupo==1){96 gera3FelizUmaemcimadaoutraMeio();97 }else if(grupo==2){98 gera3Felizemtodasfileiras ();99 }else if(grupo==3){100 gera5FelizFrente ();101 }else if(grupo==4){102 gera5Felizemtodasfileiras ();103 }else if(grupo==5){104 gera3FelizTodasFileiraUmaemcimadaoutra ();105 }106}107function gera5TristeFrente () {108 Objeto = Instantiate(triste, transform.position+transform.up*1+transform.forward*ditanciaMoedaAlvo, Quaternion.identity);109 Objeto = Instantiate(triste, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+2), Quaternion.identity);110 Objeto = Instantiate(triste, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+4), Quaternion.identity);111 Objeto = Instantiate(triste, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+6), Quaternion.identity);112 Objeto = Instantiate(triste, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+8), Quaternion.identity);113}114function gera3Tristeemtodasfileiras () {115 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista1), Quaternion.identity);116 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista1), Quaternion.identity);117 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista1), Quaternion.identity);118 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);119 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista3), Quaternion.identity);120 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista3), Quaternion.identity);121 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista5), Quaternion.identity);122 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista5), Quaternion.identity);123 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista5), Quaternion.identity);124}125function gera3TristeUmaemcimadaoutraMeio () {126 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);127 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista3), Quaternion.identity);128}129function gera5Tristeemtodasfileiras () {130 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista1), Quaternion.identity);131 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista1), Quaternion.identity);132 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista1), Quaternion.identity);133 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+6), transform.position.y+1, pista1), Quaternion.identity);134 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+8), transform.position.y+1, pista1), Quaternion.identity);135 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);136 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista3), Quaternion.identity);137 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista3), Quaternion.identity);138 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+6), transform.position.y+1, pista3), Quaternion.identity);139 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+8), transform.position.y+1, pista3), Quaternion.identity);140 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista5), Quaternion.identity);141 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista5), Quaternion.identity);142 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista5), Quaternion.identity);143 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+6), transform.position.y+1, pista5), Quaternion.identity);144 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+8), transform.position.y+1, pista5), Quaternion.identity);145}146function gera3TristeTodasFileiraUmaemcimadaoutra () {147 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista1), Quaternion.identity);148 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista1), Quaternion.identity);149 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);150 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista3), Quaternion.identity);151 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista5), Quaternion.identity);152 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista5), Quaternion.identity);153}154function geraMoedasTriste() {155 grupo = Random.Range(1,6);156 if(grupo==1){157 gera3TristeUmaemcimadaoutraMeio();158 }else if(grupo==2){159 gera3Tristeemtodasfileiras ();160 }else if(grupo==3){161 gera5TristeFrente ();162 }else if(grupo==4){163 gera5Tristeemtodasfileiras ();164 }else if(grupo==5){165 gera3TristeTodasFileiraUmaemcimadaoutra ();166 }167}168function gera5TristeFelizFrente () {169 Objeto = Instantiate(triste, transform.position+transform.up*1+transform.forward*ditanciaMoedaAlvo, Quaternion.identity);170 Objeto = Instantiate(feliz, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+2), Quaternion.identity);171 Objeto = Instantiate(triste, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+4), Quaternion.identity);172 Objeto = Instantiate(feliz, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+6), Quaternion.identity);173 Objeto = Instantiate(triste, transform.position+transform.up*1+transform.forward*(ditanciaMoedaAlvo+8), Quaternion.identity);174}175function gera3TristeFelizemtodasfileiras () {176 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista1), Quaternion.identity);177 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista1), Quaternion.identity);178 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista1), Quaternion.identity);179 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);180 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista3), Quaternion.identity);181 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista3), Quaternion.identity);182 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista5), Quaternion.identity);183 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista5), Quaternion.identity);184 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista5), Quaternion.identity);185}186function gera3TristeFelizUmaemcimadaoutraMeio () {187 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);188 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista3), Quaternion.identity);189}190function gera5TristeFelizemtodasfileiras () {191 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista1), Quaternion.identity);192 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista1), Quaternion.identity);193 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista1), Quaternion.identity);194 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+6), transform.position.y+1, pista1), Quaternion.identity);195 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+8), transform.position.y+1, pista1), Quaternion.identity);196 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);197 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista3), Quaternion.identity);198 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista3), Quaternion.identity);199 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+6), transform.position.y+1, pista3), Quaternion.identity);200 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+8), transform.position.y+1, pista3), Quaternion.identity);201 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista5), Quaternion.identity);202 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista5), Quaternion.identity);203 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista5), Quaternion.identity);204 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+6), transform.position.y+1, pista5), Quaternion.identity);205 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+8), transform.position.y+1, pista5), Quaternion.identity);206}207function gera3TristeFelizTodasFileiraUmaemcimadaoutra () {208 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista1), Quaternion.identity);209 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista1), Quaternion.identity);210 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);211 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista3), Quaternion.identity);212 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista5), Quaternion.identity);213 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+3, pista5), Quaternion.identity);214}215function geraMoedasTristeFeliz() {216 grupo = Random.Range(1,6);217 if(grupo==1){218 gera3TristeFelizUmaemcimadaoutraMeio();219 }else if(grupo==2){220 gera3TristeFelizemtodasfileiras ();221 }else if(grupo==3){222 gera5TristeFelizFrente ();223 }else if(grupo==4){224 gera5TristeFelizemtodasfileiras ();225 }else if(grupo==5){226 gera3TristeFelizTodasFileiraUmaemcimadaoutra ();227 }228}229 230function gera3TristeImpares1 () {231 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista1), Quaternion.identity);232 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista1), Quaternion.identity);233 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista1), Quaternion.identity);234 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);235 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista3), Quaternion.identity);236 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista3), Quaternion.identity);237 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista5), Quaternion.identity);238 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista5), Quaternion.identity);239 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista5), Quaternion.identity);240 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista2), Quaternion.identity);241 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista2), Quaternion.identity);242 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista2), Quaternion.identity);243 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista4), Quaternion.identity);244 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista4), Quaternion.identity);245 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista4), Quaternion.identity);246} 247 248 function gera3TristeImpares2 () {249 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista1), Quaternion.identity);250 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista1), Quaternion.identity);251 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista1), Quaternion.identity);252 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista3), Quaternion.identity);253 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista3), Quaternion.identity);254 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista3), Quaternion.identity);255 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista5), Quaternion.identity);256 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista5), Quaternion.identity);257 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista5), Quaternion.identity);258 Objeto = Instantiate(triste, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista2), Quaternion.identity);259 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista2), Quaternion.identity);260 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista2), Quaternion.identity);261 Objeto = Instantiate(feliz, new Vector3(transform.position.x+ditanciaMoedaAlvo, transform.position.y+1, pista4), Quaternion.identity);262 Objeto = Instantiate(triste, new Vector3(transform.position.x+(ditanciaMoedaAlvo+2), transform.position.y+1, pista4), Quaternion.identity);263 Objeto = Instantiate(feliz, new Vector3(transform.position.x+(ditanciaMoedaAlvo+4), transform.position.y+1, pista4), Quaternion.identity);264} 265function geraMoedasTristeImpares() {266 grupo = Random.Range(1,3);267 if(grupo==1){268 gera3TristeImpares1();269 }else if(grupo==2){270 gera3TristeImpares2 ();271 }...
Using AI Code Generation
1const unexpected = require('unexpected');2const unexpectedSinon = require('unexpected-sinon');3const unexpectedReact = require('unexpected-react');4const unexpectedImmutable = require('unexpected-immutable');5const unexpectedMoment = require('unexpected-moment');6const unexpectedEventEmitter = require('unexpected-eventemitter');7const unexpectedPromise = require('unexpected-promise');8const unexpectedRedux = require('unexpected-redux');9const unexpectedSnapshot = require('unexpected-snapshot');10const unexpectedSinonSpy = require('unexpected-sinon-spy');11const unexpectedSinonStub = require('unexpected-sinon-stub');12const unexpectedSinonMock = require('unexpected-sinon-mock');13const unexpectedSinonCall = require('unexpected-sinon-call');14const unexpectedSinonBehavior = require('unexpected-sinon-behavior');15const unexpectedSinonMatch = require('unexpected-sinon-match');16const unexpectedSinonSpyCall = require('unexpected-sinon-spy-call');17const unexpectedSinonSpyCallOrder = require('unexpected-sinon-spy-call-order');18const unexpectedSinonSpyCallCount = require('unexpected-sinon-spy-call-count');19const unexpectedSinonSpyCallArguments = require('unexpected-sinon-spy-call-arguments');20const unexpectedSinonSpyCallArgument = require('unexpected-sinon-spy-call-argument');21const unexpectedSinonSpyCallThis = require('unexpected-sinon-spy-call-this');22const unexpectedSinonSpyCallCalledWith = require('unexpected-sinon-spy-call-called-with');23const unexpectedSinonSpyCallCalledWithMatch = require('unexpected-sinon-spy-call-called-with-match');24const unexpectedSinonSpyCallCalledWithExactly = require('unexpected-sinon-spy-call-called-with-exactly');25const unexpectedSinonSpyCallCalledOnce = require('unexpected-sinon-spy-call-called-once');26const unexpectedSinonSpyCallCalledTwice = require('unexpected-sinon-spy-call-called-twice');27const unexpectedSinonSpyCallCalledThrice = require('unexpected-sinon-spy-call-called-thrice');28const unexpectedSinonSpyCallCalledBefore = require('unexpected-sinon-spy-call-called-before');29const unexpectedSinonSpyCallCalledAfter = require('unexpected-sinon-spy-call-called-after');30const unexpectedSinonSpyCallCalledImmediatelyBefore = require('unexpected-sinon-spy-call-called-immediately-before');
Using AI Code Generation
1const unexpected = require('unexpected');2const expect = unexpected.clone();3const unexpectedDom = require('unexpected-dom');4const expectDom = unexpectedDom.clone();5const unexpectedSinon = require('unexpected-sinon');6const expectSinon = unexpectedSinon.clone();7const unexpectedMessy = require('unexpected-messy');8const expectMessy = unexpectedMessy.clone();9const unexpectedHtmlLike = require('unexpected-htmllike');10const expectHtmlLike = unexpectedHtmlLike.clone();11const unexpectedCheck = require('unexpected-check');12const expectCheck = unexpectedCheck.clone();13const unexpectedSnapshot = require('unexpected-snapshot');14const expectSnapshot = unexpectedSnapshot.clone();15const unexpectedEventEmitter = require('unexpected-eventemitter');16const expectEventEmitter = unexpectedEventEmitter.clone();17const unexpectedKnex = require('unexpected-knex');18const expectKnex = unexpectedKnex.clone();19const unexpectedMitm = require('unexpected-mitm');20const expectMitm = unexpectedMitm.clone();21const unexpectedReact = require('unexpected-react');22const expectReact = unexpectedReact.clone();23const unexpectedResemble = require('unexpected-resemble');24const expectResemble = unexpectedResemble.clone();25const unexpectedSuperagent = require('unexpected-superagent');26const expectSuperagent = unexpectedSuperagent.clone();27const unexpectedExpress = require('unexpected-express');28const expectExpress = unexpectedExpress.clone();29const unexpectedEnzyme = require('unexpected-enzyme');30const expectEnzyme = unexpectedEnzyme.clone();31const unexpectedAwsSdk = require('unexpected-aws-sdk');
Using AI Code Generation
1var unexpected = require('unexpected');2var expect = unexpected.clone();3expect.addAssertion('<array> to be sorted', function (expect, subject) {4 var sorted = subject.slice().sort();5 expect(subject, 'to equal', sorted);6});7var arr = [1, 2, 3, 4];8expect(arr, 'to be sorted');9var unexpected = require('unexpected');10var expect = unexpected.clone();11expect.addAssertion('<array> to be sorted', function (expect, subject) {12 var sorted = subject.slice().sort();13 expect(subject, 'to equal', sorted);14});15var arr = [1, 2, 3, 4];16expect(arr, 'to be sorted');17var unexpected = require('unexpected');18var expect = unexpected.clone();19expect.addAssertion('<array> to be sorted', function (expect, subject) {20 var sorted = subject.slice().sort();21 expect(subject, 'to equal', sorted);22});23var arr = [1, 2, 3, 4];24expect(arr, 'to be sorted');25var unexpected = require('unexpected');26var expect = unexpected.clone();27expect.addAssertion('<array> to be sorted', function (expect, subject) {28 var sorted = subject.slice().sort();29 expect(subject, 'to equal', sorted);30});31var arr = [1, 2, 3, 4];32expect(arr, 'to be sorted');33var unexpected = require('unexpected');34var expect = unexpected.clone();
Using AI Code Generation
1const unexpected = require('unexpected');2const expect = unexpected.clone();3const unexpectedSinon = require('unexpected-sinon');4expect.use(unexpectedSinon);5const test = require('./test');6describe('test', function () {7 it('should return 1', function () {8 expect(test, 'to be called with', 1);9 });10});11module.exports = function (a) {12 return a;13};
Using AI Code Generation
1var unexpected = require('unexpected');2var expect = unexpected.clone();3var myInstance = expect.createOutput('text');4expect.addAssertion('<string> to equal <string>', function (expect, subject, value) {5 expect(subject, 'to equal', value);6});7var sinon = require('sinon');8var unexpectedSinon = require('unexpected-sinon');9var expect = unexpectedSinon.clone();10expect.use(unexpectedSinon);11expect.addAssertion('<string> to equal <string>', function (expect, subject, value) {12 expect(subject, 'to equal', value);13});14var unexpectedCheck = require('unexpected-check');15var expect = unexpectedCheck.clone();16expect.use(unexpectedCheck);17expect.addAssertion('<string> to equal <string>', function (expect, subject, value) {18 expect(subject, 'to equal', value);19});20var React = require('react');21var unexpectedReact = require('unexpected-react');22var expect = unexpectedReact.clone();23expect.use(unexpectedReact);24expect.addAssertion('<string> to equal <string>', function (expect, subject, value) {25 expect(subject, 'to equal', value);26});27var jsdom = require('jsdom');28var unexpectedDom = require('unexpected-dom');29var expect = unexpectedDom.clone();30expect.use(unexpectedDom);31expect.addAssertion('<string> to equal <string>', function (expect, subject, value) {32 expect(subject, 'to equal', value);33});34var unexpectedMarkdown = require('unexpected-markdown');35var expect = unexpectedMarkdown.clone();36expect.use(unexpectedMarkdown);37expect.addAssertion('<string> to equal <string>', function (expect, subject, value) {38 expect(subject, 'to equal', value);39});40var moment = require('moment');41var unexpectedMoment = require('unexpected-moment');42var expect = unexpectedMoment.clone();43expect.use(unexpectedMoment);44expect.addAssertion('<string> to equal <string>', function (expect, subject, value) {45 expect(subject, 'to equal', value);46});47var messy = require('messy');
Using AI Code Generation
1var unexpected = require('unexpected');2var expect = unexpected.clone();3var _ = require('lodash');4var mitm = require('unexpected-mitm');5var http = require('http');6var check = require('unexpected-check');7var messy = require('unexpected-messy');8var sinon = require('sinon');9var unexpectedSinon = require('unexpected-sinon');10var stream = require('stream');11var htmllike = require('unexpected-htmllike');12var dom = require('unexpected-dom');13var ko = require('knockout');14var unexpectedKnockout = require('unexpected-knockout');15var React = require('react');16var unexpectedReact = require('unexpected-react');17var resemble = require('node-resemble-js');18var unexpectedResemble = require('unexpected-resemble');19var enzyme = require('enzyme');20var unexpectedReactShallow = require('unexpected-react-shallow');21var unexpectedReactTestRenderer = require('unexpected-react-test-renderer');22var unexpectedReactAddonsTestUtils = require('unexpected-react-addons-test-utils');23var unexpectedMarkdown = require('unexpected-markdown');24var unexpectedSnapshot = require('unexpected-snapshot');25var unexpectedJson = require('unexpected-json');26var unexpectedHtmllikeJsxAdapter = require('unexpected-htmllike-jsx-adapter');27var unexpectedHtmllikeReactAdapter = require('unexpected-htmllike-react-adapter');28var unexpectedHtmllikePlainTextAdapter = require('unexpected-htmllike-plain-text-adapter');
Using AI Code Generation
1var unexpected = require('unexpected').clone();2var expect = unexpected.clone().use(require('unexpected-mitm'));3var mitm = expect.mitm();4mitm.restore();5var unexpected = require('unexpected').clone();6var expect = unexpected.clone().use(require('unexpected-mitm'));7var mitm = expect.mitm();8mitm.restore();9var unexpected = require('unexpected').clone();10var expect = unexpected.clone().use(require('unexpected-mitm'));11var mitm = expect.mitm();12mitm.restore();13var unexpected = require('unexpected').clone();14var expect = unexpected.clone().use(require('unexpected-mitm'));15var mitm = expect.mitm();16mitm.restore();17var unexpected = require('unexpected').clone();18var expect = unexpected.clone().use(require('unexpected-mitm'));19var mitm = expect.mitm();20mitm.restore();21var unexpected = require('unexpected').clone();22var expect = unexpected.clone().use(require('unexpected-mitm'));23var mitm = expect.mitm();24mitm.restore();25var unexpected = require('unexpected').clone();26var expect = unexpected.clone().use(require('unexpected-mitm'));27var mitm = expect.mitm();28mitm.restore();29var unexpected = require('unexpected').clone();30var expect = unexpected.clone().use(require('unexpected-mitm'));
Using AI Code Generation
1const unexpected = require('unexpected');2const unexpected = unexpected.clone();3const expect = unexpected.clone();4expect(2, 'to be', 2);5const expect = unexpected.clone();6expect.addAssertion('<string> to be a string', (expect, subject) => {7 expect(subject, 'to be a', 'string');8});9const expect = unexpected.clone();10expect.addType({11 identify: (value) => typeof value === 'string',12 inspect: (value, depth, output) => output.text(`"${value}"`)13});14const expect = unexpected.clone();15expect.addStyle('text', (value, output) => output.text(value));16const expect = unexpected.clone();17expect.addAssertion('<string> to be a string', (expect, subject) => {18 expect(subject, 'to be a', 'string');19});20expect.addStyle('text', (value, output) => output.text(value));21const expect = unexpected.clone();22expect.addAssertion('<string> to be a string', (expect, subject) => {23 expect(subject, 'to be a', 'string');24});25expect.addStyle('text', (value, output) => output.text(value));26const expect = unexpected.clone();27expect.addAssertion('<string> to be a string', (expect, subject) => {28 expect(subject, 'to be a', 'string');29});30expect.addStyle('text', (value, output) => output.text(value));31const expect = unexpected.clone();32expect.addAssertion('<string> to be a string', (expect, subject) => {33 expect(subject, 'to be a', 'string');34});35expect.addStyle('text', (value, output) => output.text(value));
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!