more tests for the runtime

This commit is contained in:
Francesco Cozzuto
2023-01-23 01:06:29 +01:00
parent 1780826a97
commit f7a2cb0611
48 changed files with 597 additions and 14 deletions
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT 90.22;
PUSHFLT 700.39;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [790.61]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT -90.22;
PUSHFLT 700.39;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [610.17]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT 90.22;
PUSHFLT -700.39;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-610.17]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT -90.22;
PUSHFLT -700.39;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-790.61]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT 90.39;
PUSHINT 700;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [790.39]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT -90.39;
PUSHINT 700;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [609.61]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT 90.39;
PUSHINT -700;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-609.61]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT -90.39;
PUSHINT -700;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-790.39]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT 90;
PUSHFLT 700.39;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [790.39]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT 90;
PUSHFLT -700.39;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-610.39]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT -90;
PUSHFLT 700.39;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [610.39]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT -90;
PUSHFLT -700.39;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-790.39]
+14
View File
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT 90;
PUSHINT 700;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [790]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT -90;
PUSHINT 700;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [610]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT 90;
PUSHINT -700;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-610]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT -90;
PUSHINT -700;
ADD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-790]
+14
View File
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT 100;
PUSHINT 8;
MOD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [4]
+14
View File
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT 8;
PUSHINT 100;
MOD;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [8]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT 90.22;
PUSHFLT 700.39;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-610.17]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT -90.22;
PUSHFLT 700.39;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-790.61]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT 90.22;
PUSHFLT -700.39;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [790.61]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT -90.22;
PUSHFLT -700.39;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [610.17]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT 90.39;
PUSHINT 700;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-609.61]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT -90.39;
PUSHINT 700;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-790.39]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT 90.39;
PUSHINT -700;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [790.39]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHFLT -90.39;
PUSHINT -700;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [609.61]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT 90;
PUSHFLT 700.39;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-610.39]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT 90;
PUSHFLT -700.39;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [790.39]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT -90;
PUSHFLT 700.39;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-790.39]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT -90;
PUSHFLT -700.39;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [610.39]
+14
View File
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT 90;
PUSHINT 700;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-610]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT -90;
PUSHINT 700;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-790]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT 90;
PUSHINT -700;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [790]
@@ -0,0 +1,14 @@
@type [runtime]
@bytecode
PUSHINT -90;
PUSHINT -700;
SUB;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [610]
+13
View File
@@ -0,0 +1,13 @@
@type [runtime]
@bytecode
PUSHINT 23;
NEG;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-23]
+13
View File
@@ -0,0 +1,13 @@
@type [runtime]
@bytecode
PUSHINT -23;
NEG;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [23]
+13
View File
@@ -0,0 +1,13 @@
@type [runtime]
@bytecode
PUSHFLT 2.3;
NEG;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [-2.30]
+13
View File
@@ -0,0 +1,13 @@
@type [runtime]
@bytecode
PUSHFLT -2.3;
NEG;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [2.30]
+13
View File
@@ -0,0 +1,13 @@
@type [runtime]
@bytecode
PUSHTRU;
NOT;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [false]
+13
View File
@@ -0,0 +1,13 @@
@type [runtime]
@bytecode
PUSHFLS;
NOT;
PUSHVAR "print";
CALL 1, 1;
POP 1;
EXIT;
@output [true]