Skip to content

Commit 06a0cc9

Browse files
committed
Add test case for #276
1 parent 9ccd0a8 commit 06a0cc9

File tree

3 files changed

+57
-0
lines changed

3 files changed

+57
-0
lines changed
3.2 KB
Binary file not shown.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
// TW Snapshot
2+
// Input SHA-256: 3c81a01417b9a927457132a5f89b63e54b2499714376246739535b51dbce2d45
3+
4+
// Sprite1 script
5+
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
6+
const b0 = runtime.getOpcodeFunction("looks_say");
7+
const b1 = stage.variables["`jEk@4|i[#Fk?(8x)AV.-my variable"];
8+
return function* genXYZ () {
9+
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, "g", null);
10+
thread.procedures["Wtest %s"]("random");
11+
if ((("" + b1.value).toLowerCase() === "random".toLowerCase())) {
12+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, "p", null);
13+
}
14+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, "n", null);
15+
retire(); return;
16+
}; })
17+
18+
// Sprite1 Wtest %s
19+
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
20+
const b0 = stage.variables["`jEk@4|i[#Fk?(8x)AV.-my variable"];
21+
const b1 = stage.variables["t)]?yi[*8XU73qhMqOa8"];
22+
return function funXYZ_test_ (p0) {
23+
b0.value = p0;
24+
while (!(("" + listGet(b1.value, b0.value)).toLowerCase() === "something".toLowerCase())) {
25+
b0.value = ((+b0.value || 0) + 1);
26+
}
27+
return "";
28+
}; })
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
// TW Snapshot
2+
// Input SHA-256: 3c81a01417b9a927457132a5f89b63e54b2499714376246739535b51dbce2d45
3+
4+
// Sprite1 script
5+
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
6+
const b0 = runtime.getOpcodeFunction("looks_say");
7+
const b1 = stage.variables["`jEk@4|i[#Fk?(8x)AV.-my variable"];
8+
return function* genXYZ () {
9+
yield* executeInCompatibilityLayer({"MESSAGE":"plan 1",}, b0, false, false, "g", null);
10+
yield* thread.procedures["Wtest %s"]("random");
11+
if ((("" + b1.value).toLowerCase() === "random".toLowerCase())) {
12+
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, "p", null);
13+
}
14+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, "n", null);
15+
retire(); return;
16+
}; })
17+
18+
// Sprite1 Wtest %s
19+
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
20+
const b0 = stage.variables["`jEk@4|i[#Fk?(8x)AV.-my variable"];
21+
const b1 = stage.variables["t)]?yi[*8XU73qhMqOa8"];
22+
return function* genXYZ_test_ (p0) {
23+
b0.value = p0;
24+
while (!(("" + listGet(b1.value, b0.value)).toLowerCase() === "something".toLowerCase())) {
25+
b0.value = ((+b0.value || 0) + 1);
26+
if (isStuck()) yield;
27+
}
28+
return "";
29+
}; })

0 commit comments

Comments
 (0)