new testing infrastructure
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
|
||||
@type [compiler]
|
||||
@source
|
||||
|
||||
if true:
|
||||
{}
|
||||
|
||||
@bytecode
|
||||
|
||||
PUSHTRU;
|
||||
JUMPIFNOTANDPOP end;
|
||||
end:
|
||||
EXIT;
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
@type [compiler]
|
||||
@source
|
||||
|
||||
if true:
|
||||
none;
|
||||
|
||||
@bytecode
|
||||
|
||||
PUSHTRU;
|
||||
JUMPIFNOTANDPOP end;
|
||||
PUSHNNE;
|
||||
POP 1;
|
||||
end:
|
||||
EXIT;
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
@type [compiler]
|
||||
@source
|
||||
|
||||
if true:
|
||||
{}
|
||||
else
|
||||
{}
|
||||
|
||||
@bytecode
|
||||
|
||||
PUSHTRU;
|
||||
JUMPIFNOTANDPOP end;
|
||||
|
||||
JUMP end;
|
||||
|
||||
end:
|
||||
EXIT;
|
||||
@@ -0,0 +1,21 @@
|
||||
|
||||
@type [compiler]
|
||||
@source
|
||||
|
||||
if none:
|
||||
true;
|
||||
else
|
||||
false;
|
||||
|
||||
@bytecode
|
||||
|
||||
PUSHNNE;
|
||||
JUMPIFNOTANDPOP else;
|
||||
PUSHTRU;
|
||||
POP 1;
|
||||
JUMP end;
|
||||
else:
|
||||
PUSHFLS;
|
||||
POP 1;
|
||||
end:
|
||||
EXIT;
|
||||
Reference in New Issue
Block a user