new testing infrastructure

This commit is contained in:
Francesco Cozzuto
2023-01-22 02:22:44 +01:00
parent 533cf01920
commit 1780826a97
145 changed files with 1432 additions and 938 deletions
+10
View File
@@ -0,0 +1,10 @@
@type [runtime]
@bytecode
PUSHNNE;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [none]
+12
View File
@@ -0,0 +1,12 @@
@type [runtime]
@bytecode
PUSHTRU;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [true]
+12
View File
@@ -0,0 +1,12 @@
@type [runtime]
@bytecode
PUSHFLS;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [false]
+12
View File
@@ -0,0 +1,12 @@
@type [runtime]
@bytecode
PUSHINT 7;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [7]
+12
View File
@@ -0,0 +1,12 @@
@type [runtime]
@bytecode
PUSHFLT 8.5;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [8.50]
+12
View File
@@ -0,0 +1,12 @@
@type [runtime]
@bytecode
PUSHLST 0;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output {[]}
+12
View File
@@ -0,0 +1,12 @@
@type [runtime]
@bytecode
PUSHNNETYP;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [None]
+13
View File
@@ -0,0 +1,13 @@
@type [runtime]
@bytecode
PUSHTRU;
PUSHTYP;
PUSHVAR "print";
CALL 1, 1;
POP 2;
EXIT;
@output [bool]
+17
View File
@@ -0,0 +1,17 @@
@type [runtime]
@bytecode
PUSHTRU;
JUMPIFNOTANDPOP ye;
PUSHINT 100;
JUMP end;
ye:
PUSHINT 300;
end:
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [100]
+17
View File
@@ -0,0 +1,17 @@
@type [runtime]
@bytecode
PUSHFLS;
JUMPIFNOTANDPOP ye;
PUSHINT 100;
JUMP end;
ye:
PUSHINT 300;
end:
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [300]
+17
View File
@@ -0,0 +1,17 @@
@type [runtime]
@bytecode
PUSHTRU;
JUMPIFANDPOP ye;
PUSHINT 100;
JUMP end;
ye:
PUSHINT 300;
end:
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [300]
+17
View File
@@ -0,0 +1,17 @@
@type [runtime]
@bytecode
PUSHFLS;
JUMPIFANDPOP ye;
PUSHINT 100;
JUMP end;
ye:
PUSHINT 300;
end:
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [100]
+13
View File
@@ -0,0 +1,13 @@
@type [runtime]
@bytecode
PUSHINT 23;
POS;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [23]