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
@@ -0,0 +1,9 @@
@type [compiler]
@source
1;
@bytecode
PUSHINT 1;
POP 1;
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
6.7;
@bytecode
PUSHFLT 6.7;
POP 1;
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
'Hello, world!';
@bytecode
PUSHSTR "Hello, world!";
POP 1;
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
true;
@bytecode
PUSHTRU;
POP 1;
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
false;
@bytecode
PUSHFLS;
POP 1;
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
none;
@bytecode
PUSHNNE;
POP 1;
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
({});
@bytecode
PUSHMAP 0;
POP 1;
EXIT;
@@ -0,0 +1,14 @@
@type [compiler]
@source
# This comment is because there
# can't be a '[' right before a
# tag.
[];
@bytecode
PUSHLST 0;
POP 1;
EXIT;
@@ -0,0 +1,9 @@
@type [compiler]
@source
{}
@bytecode
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
'This \\ is a slash!';
@bytecode
PUSHSTR "This \\ is a slash!";
POP 1;
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
'This \n is a newline!';
@bytecode
PUSHSTR "This \n is a newline!";
POP 1;
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
'This \t is an horizontal tab!';
@bytecode
PUSHSTR "This \t is an horizontal tab!";
POP 1;
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
'This \r is a special character!';
@bytecode
PUSHSTR "This \r is a special character!";
POP 1;
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
'Look at this \'!';
@bytecode
PUSHSTR "Look at this '!";
POP 1;
EXIT;
@@ -0,0 +1,11 @@
@type [compiler]
@source
"Look at this \"!";
@bytecode
PUSHSTR "Look at this \"!";
POP 1;
EXIT;