Skip to content

Commit 4a8a5ad

Browse files
committed
Add test case for 7ed29f5
1 parent 214b86a commit 4a8a5ad

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed
1.99 KB
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// TW Snapshot
2+
// Input SHA-256: 91090a2de3ee7db914230fa0aa354e89d6b1781b5a730a71986b018b5f217f18
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 2",}, b0, false, false, "f", null);
10+
b1.value = "5";
11+
runtime.ext_scratch3_looks._setCostume(target, "costume1");
12+
if (((target.currentCostume + 1) === 1)) {
13+
yield* executeInCompatibilityLayer({"MESSAGE":"pass initial costume",}, b0, false, false, "p", null);
14+
}
15+
runtime.ext_scratch3_looks._setCostume(target, b1.value);
16+
if (((target.currentCostume + 1) === 3)) {
17+
yield* executeInCompatibilityLayer({"MESSAGE":"pass costume \"5\"",}, b0, false, false, "m", null);
18+
}
19+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, "l", null);
20+
retire(); return;
21+
}; })
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
// TW Snapshot
2+
// Input SHA-256: 91090a2de3ee7db914230fa0aa354e89d6b1781b5a730a71986b018b5f217f18
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 2",}, b0, false, false, "f", null);
10+
b1.value = "5";
11+
runtime.ext_scratch3_looks._setCostume(target, "costume1");
12+
if (((target.currentCostume + 1) === 1)) {
13+
yield* executeInCompatibilityLayer({"MESSAGE":"pass initial costume",}, b0, false, false, "p", null);
14+
}
15+
runtime.ext_scratch3_looks._setCostume(target, b1.value);
16+
if (((target.currentCostume + 1) === 3)) {
17+
yield* executeInCompatibilityLayer({"MESSAGE":"pass costume \"5\"",}, b0, false, false, "m", null);
18+
}
19+
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, "l", null);
20+
retire(); return;
21+
}; })

0 commit comments

Comments
 (0)