penguinmod-vm-prain
/
test
/snapshot
/__snapshots__
/tw-forkphorus-515-random-with-invalid-number-with-period.sb3.tw-snapshot
// TW Snapshot | |
// Input SHA-256: 725e0683c8cd39c78a143727bf26f8827d1e9fd627eef68a772d8a3a06806c65 | |
// Sprite1 script | |
(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["`jEk@4|i[#Fk?(8x)AV.-my variable"]; | |
return function* genXYZ () { | |
yield* executeInCompatibilityLayer({"MESSAGE":"plan 6",}, b0, false, false, null); | |
b1.value = runtime.ext_scratch3_operators._random(("an invalid number" + "."), 1); | |
if (!(b1.value <= 0)) { | |
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null); | |
} | |
if (compareLessThan(b1.value, 1)) { | |
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null); | |
} | |
if ((("" + b1.value).toLowerCase().indexOf(".".toLowerCase()) !== -1)) { | |
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null); | |
} | |
b1.value = runtime.ext_scratch3_operators._random(1, ("an invalid number" + ".")); | |
if (!(b1.value <= 0)) { | |
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null); | |
} | |
if (compareLessThan(b1.value, 1)) { | |
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null); | |
} | |
if ((("" + b1.value).toLowerCase().indexOf(".".toLowerCase()) !== -1)) { | |
yield* executeInCompatibilityLayer({"MESSAGE":"pass",}, b0, false, false, null); | |
} | |
yield* executeInCompatibilityLayer({"MESSAGE":"end",}, b0, false, false, null); | |
retire(); | |
}; }) | |