Skip to content

Commit

Permalink
Disable tests that are now intentionally broken
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Jul 23, 2023
1 parent f0bb852 commit b8892ef
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 42 deletions.
Binary file modified test/fixtures/execute/tw-procedure-return-non-existant.sb3
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
const b0 = runtime.getOpcodeFunction("looks_say");
return function* genXYZ () {
yield* executeInCompatibilityLayer({"MESSAGE":"plan 0",}, b0, false, false, null);
void "";
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
retire(); return;
}; })
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// TW Snapshot
// Input SHA-256: f471ef1fa15b4b136753a0a27fbe487291c7a38fdf2cce1fcb36f9e9b712cf13
// Input SHA-256: b9110339d39947f68168cbb129a20b23b7d4e607ffd5624bd67e096451f6a329

// Sprite1 script
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
Expand All @@ -25,19 +25,9 @@ retire(); return;
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
const b0 = runtime.getOpcodeFunction("looks_say");
const b1 = stage.variables["Go=PJS7BFXYo_qi2S:kQ"];
const b2 = stage.variables["!Hlf`73W/F$a]t=WtfHK"];
return function* genXYZ () {
yield* executeInCompatibilityLayer({"MESSAGE":"plan 5",}, b0, false, false, null);
yield* executeInCompatibilityLayer({"MESSAGE":"plan 2",}, b0, false, false, null);
b1.value = 0;
if (compareEqual((thread.procedures["Zbut it still runs this %s"]("yup"),""), "")) {
yield* executeInCompatibilityLayer({"MESSAGE":"pass default return value for function that does not exist",}, b0, false, false, null);
if (compareEqual(b1.value, 0)) {
yield* executeInCompatibilityLayer({"MESSAGE":"pass calling function that does not exist is still instant",}, b0, false, false, null);
}
if ((("" + b2.value).toLowerCase() === "yup".toLowerCase())) {
yield* executeInCompatibilityLayer({"MESSAGE":"pass still executes parameters for non existent functions",}, b0, false, false, null);
}
}
if (compareEqual(thread.procedures["Zinvalid params - reporter"](), 0)) {
yield* executeInCompatibilityLayer({"MESSAGE":"pass invalid params reporter",}, b0, false, false, null);
}
Expand All @@ -49,14 +39,6 @@ yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
retire(); return;
}; })

// Sprite1 but it still runs this %s
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
const b0 = stage.variables["!Hlf`73W/F$a]t=WtfHK"];
return function funXYZ_but_it_still_runs_th (p0) {
b0.value = p0;
return "";
}; })

// Sprite1 invalid params - reporter
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
return function funXYZ_invalid_params___rep () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
const b0 = runtime.getOpcodeFunction("looks_say");
return function* genXYZ () {
yield* executeInCompatibilityLayer({"MESSAGE":"plan 0",}, b0, false, false, null);
void "";
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
retire(); return;
}; })
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// TW Snapshot
// Input SHA-256: f471ef1fa15b4b136753a0a27fbe487291c7a38fdf2cce1fcb36f9e9b712cf13
// Input SHA-256: b9110339d39947f68168cbb129a20b23b7d4e607ffd5624bd67e096451f6a329

// Sprite1 script
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
Expand All @@ -25,19 +25,9 @@ retire(); return;
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
const b0 = runtime.getOpcodeFunction("looks_say");
const b1 = stage.variables["Go=PJS7BFXYo_qi2S:kQ"];
const b2 = stage.variables["!Hlf`73W/F$a]t=WtfHK"];
return function* genXYZ () {
yield* executeInCompatibilityLayer({"MESSAGE":"plan 5",}, b0, false, false, null);
yield* executeInCompatibilityLayer({"MESSAGE":"plan 2",}, b0, false, false, null);
b1.value = 0;
if (compareEqual((thread.procedures["Zbut it still runs this %s"]("yup"),""), "")) {
yield* executeInCompatibilityLayer({"MESSAGE":"pass default return value for function that does not exist",}, b0, false, false, null);
if (compareEqual(b1.value, 0)) {
yield* executeInCompatibilityLayer({"MESSAGE":"pass calling function that does not exist is still instant",}, b0, false, false, null);
}
if ((("" + b2.value).toLowerCase() === "yup".toLowerCase())) {
yield* executeInCompatibilityLayer({"MESSAGE":"pass still executes parameters for non existent functions",}, b0, false, false, null);
}
}
if (compareEqual(thread.procedures["Zinvalid params - reporter"](), 0)) {
yield* executeInCompatibilityLayer({"MESSAGE":"pass invalid params reporter",}, b0, false, false, null);
}
Expand All @@ -49,14 +39,6 @@ yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null);
retire(); return;
}; })

// Sprite1 but it still runs this %s
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
const b0 = stage.variables["!Hlf`73W/F$a]t=WtfHK"];
return function funXYZ_but_it_still_runs_th (p0) {
b0.value = p0;
return "";
}; })

// Sprite1 invalid params - reporter
(function factoryXYZ(thread) { const target = thread.target; const runtime = target.runtime; const stage = runtime.getTargetForStage();
return function funXYZ_invalid_params___rep () {
Expand Down

0 comments on commit b8892ef

Please sign in to comment.