From d786d7d1fda3c8acbc9f4da60cb95ad91a960f99 Mon Sep 17 00:00:00 2001 From: Francesco Cozzuto Date: Mon, 23 Jan 2023 13:17:34 +0100 Subject: [PATCH] runtime tests for relational operators --- src/lib/assembler/assemble.c | 6 ++++-- src/lib/run.c | 10 ++++++++-- src/lib/runtime.c | 2 +- tests/runtime/eql/float_eql_float_false.noja-test | 13 +++++++++++++ tests/runtime/eql/float_eql_float_true.noja-test | 13 +++++++++++++ tests/runtime/eql/float_eql_int.noja-test | 13 +++++++++++++ tests/runtime/eql/int_eql_int_false.noja-test | 13 +++++++++++++ tests/runtime/eql/int_eql_int_true.noja-test | 13 +++++++++++++ tests/runtime/geq/float_geq_float_00.noja-test | 14 ++++++++++++++ tests/runtime/geq/float_geq_float_01.noja-test | 14 ++++++++++++++ tests/runtime/geq/float_geq_float_02.noja-test | 14 ++++++++++++++ tests/runtime/geq/float_geq_float_03.noja-test | 14 ++++++++++++++ tests/runtime/geq/float_geq_float_04.noja-test | 14 ++++++++++++++ tests/runtime/geq/float_geq_int_00.noja-test | 14 ++++++++++++++ tests/runtime/geq/float_geq_int_01.noja-test | 14 ++++++++++++++ tests/runtime/geq/float_geq_int_02.noja-test | 14 ++++++++++++++ tests/runtime/geq/float_geq_int_03.noja-test | 14 ++++++++++++++ tests/runtime/geq/float_geq_int_04.noja-test | 14 ++++++++++++++ tests/runtime/geq/int_geq_float_00.noja-test | 14 ++++++++++++++ tests/runtime/geq/int_geq_float_01.noja-test | 14 ++++++++++++++ tests/runtime/geq/int_geq_float_02.noja-test | 14 ++++++++++++++ tests/runtime/geq/int_geq_float_03.noja-test | 14 ++++++++++++++ tests/runtime/geq/int_geq_float_04.noja-test | 14 ++++++++++++++ tests/runtime/geq/int_geq_int_00.noja-test | 14 ++++++++++++++ tests/runtime/geq/int_geq_int_01.noja-test | 14 ++++++++++++++ tests/runtime/geq/int_geq_int_02.noja-test | 14 ++++++++++++++ tests/runtime/geq/int_geq_int_03.noja-test | 14 ++++++++++++++ tests/runtime/grt/float_grt_float_00.noja-test | 14 ++++++++++++++ tests/runtime/grt/float_grt_float_01.noja-test | 14 ++++++++++++++ tests/runtime/grt/float_grt_float_02.noja-test | 14 ++++++++++++++ tests/runtime/grt/float_grt_float_03.noja-test | 14 ++++++++++++++ tests/runtime/grt/float_grt_float_04.noja-test | 14 ++++++++++++++ tests/runtime/grt/float_grt_int_00.noja-test | 14 ++++++++++++++ tests/runtime/grt/float_grt_int_01.noja-test | 14 ++++++++++++++ tests/runtime/grt/float_grt_int_02.noja-test | 14 ++++++++++++++ tests/runtime/grt/float_grt_int_03.noja-test | 14 ++++++++++++++ tests/runtime/grt/float_grt_int_04.noja-test | 14 ++++++++++++++ tests/runtime/grt/int_grt_float_00.noja-test | 14 ++++++++++++++ tests/runtime/grt/int_grt_float_01.noja-test | 14 ++++++++++++++ tests/runtime/grt/int_grt_float_02.noja-test | 14 ++++++++++++++ tests/runtime/grt/int_grt_float_03.noja-test | 14 ++++++++++++++ tests/runtime/grt/int_grt_float_04.noja-test | 14 ++++++++++++++ tests/runtime/grt/int_grt_int_00.noja-test | 14 ++++++++++++++ tests/runtime/grt/int_grt_int_01.noja-test | 14 ++++++++++++++ tests/runtime/grt/int_grt_int_02.noja-test | 14 ++++++++++++++ tests/runtime/grt/int_grt_int_03.noja-test | 14 ++++++++++++++ tests/runtime/leq/float_leq_float_00.noja-test | 14 ++++++++++++++ tests/runtime/leq/float_leq_float_01.noja-test | 14 ++++++++++++++ tests/runtime/leq/float_leq_float_02.noja-test | 14 ++++++++++++++ tests/runtime/leq/float_leq_float_03.noja-test | 14 ++++++++++++++ tests/runtime/leq/float_leq_float_04.noja-test | 14 ++++++++++++++ tests/runtime/leq/float_leq_int_00.noja-test | 14 ++++++++++++++ tests/runtime/leq/float_leq_int_01.noja-test | 14 ++++++++++++++ tests/runtime/leq/float_leq_int_02.noja-test | 14 ++++++++++++++ tests/runtime/leq/float_leq_int_03.noja-test | 14 ++++++++++++++ tests/runtime/leq/float_leq_int_04.noja-test | 14 ++++++++++++++ tests/runtime/leq/int_leq_float_00.noja-test | 14 ++++++++++++++ tests/runtime/leq/int_leq_float_01.noja-test | 14 ++++++++++++++ tests/runtime/leq/int_leq_float_02.noja-test | 14 ++++++++++++++ tests/runtime/leq/int_leq_float_03.noja-test | 14 ++++++++++++++ tests/runtime/leq/int_leq_float_04.noja-test | 14 ++++++++++++++ tests/runtime/leq/int_leq_int_00.noja-test | 14 ++++++++++++++ tests/runtime/leq/int_leq_int_01.noja-test | 14 ++++++++++++++ tests/runtime/leq/int_leq_int_02.noja-test | 14 ++++++++++++++ tests/runtime/leq/int_leq_int_03.noja-test | 14 ++++++++++++++ tests/runtime/lss/float_lss_float_00.noja-test | 14 ++++++++++++++ tests/runtime/lss/float_lss_float_01.noja-test | 14 ++++++++++++++ tests/runtime/lss/float_lss_float_02.noja-test | 14 ++++++++++++++ tests/runtime/lss/float_lss_float_03.noja-test | 14 ++++++++++++++ tests/runtime/lss/float_lss_float_04.noja-test | 14 ++++++++++++++ tests/runtime/lss/float_lss_int_00.noja-test | 14 ++++++++++++++ tests/runtime/lss/float_lss_int_01.noja-test | 14 ++++++++++++++ tests/runtime/lss/float_lss_int_02.noja-test | 14 ++++++++++++++ tests/runtime/lss/float_lss_int_03.noja-test | 14 ++++++++++++++ tests/runtime/lss/float_lss_int_04.noja-test | 14 ++++++++++++++ tests/runtime/lss/int_lss_float_00.noja-test | 14 ++++++++++++++ tests/runtime/lss/int_lss_float_01.noja-test | 14 ++++++++++++++ tests/runtime/lss/int_lss_float_02.noja-test | 14 ++++++++++++++ tests/runtime/lss/int_lss_float_03.noja-test | 14 ++++++++++++++ tests/runtime/lss/int_lss_float_04.noja-test | 14 ++++++++++++++ tests/runtime/lss/int_lss_int_00.noja-test | 14 ++++++++++++++ tests/runtime/lss/int_lss_int_01.noja-test | 14 ++++++++++++++ tests/runtime/lss/int_lss_int_02.noja-test | 14 ++++++++++++++ tests/runtime/lss/int_lss_int_03.noja-test | 14 ++++++++++++++ tests/runtime/nql/float_nql_float_false.noja-test | 13 +++++++++++++ tests/runtime/nql/float_nql_float_true.noja-test | 13 +++++++++++++ tests/runtime/nql/float_nql_int.noja-test | 13 +++++++++++++ tests/runtime/nql/int_nql_int_false.noja-test | 13 +++++++++++++ tests/runtime/nql/int_nql_int_true.noja-test | 13 +++++++++++++ 89 files changed, 1207 insertions(+), 5 deletions(-) create mode 100644 tests/runtime/eql/float_eql_float_false.noja-test create mode 100644 tests/runtime/eql/float_eql_float_true.noja-test create mode 100644 tests/runtime/eql/float_eql_int.noja-test create mode 100644 tests/runtime/eql/int_eql_int_false.noja-test create mode 100644 tests/runtime/eql/int_eql_int_true.noja-test create mode 100644 tests/runtime/geq/float_geq_float_00.noja-test create mode 100644 tests/runtime/geq/float_geq_float_01.noja-test create mode 100644 tests/runtime/geq/float_geq_float_02.noja-test create mode 100644 tests/runtime/geq/float_geq_float_03.noja-test create mode 100644 tests/runtime/geq/float_geq_float_04.noja-test create mode 100644 tests/runtime/geq/float_geq_int_00.noja-test create mode 100644 tests/runtime/geq/float_geq_int_01.noja-test create mode 100644 tests/runtime/geq/float_geq_int_02.noja-test create mode 100644 tests/runtime/geq/float_geq_int_03.noja-test create mode 100644 tests/runtime/geq/float_geq_int_04.noja-test create mode 100644 tests/runtime/geq/int_geq_float_00.noja-test create mode 100644 tests/runtime/geq/int_geq_float_01.noja-test create mode 100644 tests/runtime/geq/int_geq_float_02.noja-test create mode 100644 tests/runtime/geq/int_geq_float_03.noja-test create mode 100644 tests/runtime/geq/int_geq_float_04.noja-test create mode 100644 tests/runtime/geq/int_geq_int_00.noja-test create mode 100644 tests/runtime/geq/int_geq_int_01.noja-test create mode 100644 tests/runtime/geq/int_geq_int_02.noja-test create mode 100644 tests/runtime/geq/int_geq_int_03.noja-test create mode 100644 tests/runtime/grt/float_grt_float_00.noja-test create mode 100644 tests/runtime/grt/float_grt_float_01.noja-test create mode 100644 tests/runtime/grt/float_grt_float_02.noja-test create mode 100644 tests/runtime/grt/float_grt_float_03.noja-test create mode 100644 tests/runtime/grt/float_grt_float_04.noja-test create mode 100644 tests/runtime/grt/float_grt_int_00.noja-test create mode 100644 tests/runtime/grt/float_grt_int_01.noja-test create mode 100644 tests/runtime/grt/float_grt_int_02.noja-test create mode 100644 tests/runtime/grt/float_grt_int_03.noja-test create mode 100644 tests/runtime/grt/float_grt_int_04.noja-test create mode 100644 tests/runtime/grt/int_grt_float_00.noja-test create mode 100644 tests/runtime/grt/int_grt_float_01.noja-test create mode 100644 tests/runtime/grt/int_grt_float_02.noja-test create mode 100644 tests/runtime/grt/int_grt_float_03.noja-test create mode 100644 tests/runtime/grt/int_grt_float_04.noja-test create mode 100644 tests/runtime/grt/int_grt_int_00.noja-test create mode 100644 tests/runtime/grt/int_grt_int_01.noja-test create mode 100644 tests/runtime/grt/int_grt_int_02.noja-test create mode 100644 tests/runtime/grt/int_grt_int_03.noja-test create mode 100644 tests/runtime/leq/float_leq_float_00.noja-test create mode 100644 tests/runtime/leq/float_leq_float_01.noja-test create mode 100644 tests/runtime/leq/float_leq_float_02.noja-test create mode 100644 tests/runtime/leq/float_leq_float_03.noja-test create mode 100644 tests/runtime/leq/float_leq_float_04.noja-test create mode 100644 tests/runtime/leq/float_leq_int_00.noja-test create mode 100644 tests/runtime/leq/float_leq_int_01.noja-test create mode 100644 tests/runtime/leq/float_leq_int_02.noja-test create mode 100644 tests/runtime/leq/float_leq_int_03.noja-test create mode 100644 tests/runtime/leq/float_leq_int_04.noja-test create mode 100644 tests/runtime/leq/int_leq_float_00.noja-test create mode 100644 tests/runtime/leq/int_leq_float_01.noja-test create mode 100644 tests/runtime/leq/int_leq_float_02.noja-test create mode 100644 tests/runtime/leq/int_leq_float_03.noja-test create mode 100644 tests/runtime/leq/int_leq_float_04.noja-test create mode 100644 tests/runtime/leq/int_leq_int_00.noja-test create mode 100644 tests/runtime/leq/int_leq_int_01.noja-test create mode 100644 tests/runtime/leq/int_leq_int_02.noja-test create mode 100644 tests/runtime/leq/int_leq_int_03.noja-test create mode 100644 tests/runtime/lss/float_lss_float_00.noja-test create mode 100644 tests/runtime/lss/float_lss_float_01.noja-test create mode 100644 tests/runtime/lss/float_lss_float_02.noja-test create mode 100644 tests/runtime/lss/float_lss_float_03.noja-test create mode 100644 tests/runtime/lss/float_lss_float_04.noja-test create mode 100644 tests/runtime/lss/float_lss_int_00.noja-test create mode 100644 tests/runtime/lss/float_lss_int_01.noja-test create mode 100644 tests/runtime/lss/float_lss_int_02.noja-test create mode 100644 tests/runtime/lss/float_lss_int_03.noja-test create mode 100644 tests/runtime/lss/float_lss_int_04.noja-test create mode 100644 tests/runtime/lss/int_lss_float_00.noja-test create mode 100644 tests/runtime/lss/int_lss_float_01.noja-test create mode 100644 tests/runtime/lss/int_lss_float_02.noja-test create mode 100644 tests/runtime/lss/int_lss_float_03.noja-test create mode 100644 tests/runtime/lss/int_lss_float_04.noja-test create mode 100644 tests/runtime/lss/int_lss_int_00.noja-test create mode 100644 tests/runtime/lss/int_lss_int_01.noja-test create mode 100644 tests/runtime/lss/int_lss_int_02.noja-test create mode 100644 tests/runtime/lss/int_lss_int_03.noja-test create mode 100644 tests/runtime/nql/float_nql_float_false.noja-test create mode 100644 tests/runtime/nql/float_nql_float_true.noja-test create mode 100644 tests/runtime/nql/float_nql_int.noja-test create mode 100644 tests/runtime/nql/int_nql_int_false.noja-test create mode 100644 tests/runtime/nql/int_nql_int_true.noja-test diff --git a/src/lib/assembler/assemble.c b/src/lib/assembler/assemble.c index 0a18625..ae94c75 100644 --- a/src/lib/assembler/assemble.c +++ b/src/lib/assembler/assemble.c @@ -458,8 +458,10 @@ Executable *assemble(Source *src, Error *error, int *error_offset) assert(ctx.cur == ctx.len || ctx.str[ctx.cur] == ';'); if(ctx.cur < ctx.len) ctx.cur += 1; - if(!ExeBuilder_Append(builder, error, opcode, opv, opc, opcode_name.offset, opcode_name.length)) + if(!ExeBuilder_Append(builder, error, opcode, opv, opc, opcode_name.offset, opcode_name.length)) { + *error_offset = ctx.cur; goto done; + } } size_t unresolved_count = LabelList_GetUnresolvedCount(list); @@ -470,7 +472,7 @@ Executable *assemble(Source *src, Error *error, int *error_offset) } exe = ExeBuilder_Finalize(builder, error); - + if(exe != NULL) (void) Executable_SetSource(exe, src); diff --git a/src/lib/run.c b/src/lib/run.c index 396258b..6e487b0 100644 --- a/src/lib/run.c +++ b/src/lib/run.c @@ -1137,7 +1137,10 @@ int runSource(Runtime *runtime, Source *source, Object *rets[static MAX_RETS], E int error_offset; Executable *exe = compile(source, error, &error_offset); if(exe == NULL) { - Runtime_PushFailedFrame(runtime, error, source, error_offset); // If this fails, there's nothing we can do + Error suberror; + Error_Init(&suberror); + Runtime_PushFailedFrame(runtime, &suberror, source, error_offset); // If this fails, there's nothing we can do + Error_Free(&suberror); return -1; } @@ -1152,7 +1155,10 @@ int runBytecodeSource(Runtime *runtime, Source *source, Object *rets[static MAX_ int error_offset; Executable *exe = assemble(source, error, &error_offset); if(exe == NULL) { - Runtime_PushFailedFrame(runtime, error, source, error_offset); // If this fails, there's nothing we can do + Error suberror; + Error_Init(&suberror); + Runtime_PushFailedFrame(runtime, &suberror, source, error_offset); // If this fails, there's nothing we can do + Error_Free(&suberror); return -1; } diff --git a/src/lib/runtime.c b/src/lib/runtime.c index 3f1110a..53fd5ea 100644 --- a/src/lib/runtime.c +++ b/src/lib/runtime.c @@ -620,7 +620,7 @@ bool Runtime_PushFailedFrame(Runtime *runtime, Error *error, Source *source, int failed_frame->base.type = FrameType_FAILED; failed_frame->base.prev = NULL; - failed_frame->source = source; + failed_frame->source = source_copy; failed_frame->offset = offset; if (!appendFrame(runtime, error, (Frame*) failed_frame)) { diff --git a/tests/runtime/eql/float_eql_float_false.noja-test b/tests/runtime/eql/float_eql_float_false.noja-test new file mode 100644 index 0000000..9a0e47a --- /dev/null +++ b/tests/runtime/eql/float_eql_float_false.noja-test @@ -0,0 +1,13 @@ +@type [runtime] + +@bytecode + PUSHFLT 7.2; + PUSHFLT 8.4; + EQL; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/eql/float_eql_float_true.noja-test b/tests/runtime/eql/float_eql_float_true.noja-test new file mode 100644 index 0000000..9e6adff --- /dev/null +++ b/tests/runtime/eql/float_eql_float_true.noja-test @@ -0,0 +1,13 @@ +@type [runtime] + +@bytecode + PUSHFLT 7.2; + PUSHFLT 7.2; + EQL; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/eql/float_eql_int.noja-test b/tests/runtime/eql/float_eql_int.noja-test new file mode 100644 index 0000000..c3a1487 --- /dev/null +++ b/tests/runtime/eql/float_eql_int.noja-test @@ -0,0 +1,13 @@ +@type [runtime] + +@bytecode + PUSHINT 7; + PUSHFLT 8.4; + EQL; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/eql/int_eql_int_false.noja-test b/tests/runtime/eql/int_eql_int_false.noja-test new file mode 100644 index 0000000..aaaad3d --- /dev/null +++ b/tests/runtime/eql/int_eql_int_false.noja-test @@ -0,0 +1,13 @@ +@type [runtime] + +@bytecode + PUSHINT 7; + PUSHINT 8; + EQL; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/eql/int_eql_int_true.noja-test b/tests/runtime/eql/int_eql_int_true.noja-test new file mode 100644 index 0000000..326a728 --- /dev/null +++ b/tests/runtime/eql/int_eql_int_true.noja-test @@ -0,0 +1,13 @@ +@type [runtime] + +@bytecode + PUSHINT 7; + PUSHINT 7; + EQL; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/float_geq_float_00.noja-test b/tests/runtime/geq/float_geq_float_00.noja-test new file mode 100644 index 0000000..f00dd5e --- /dev/null +++ b/tests/runtime/geq/float_geq_float_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.9; + PUSHFLT 7.1; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/geq/float_geq_float_01.noja-test b/tests/runtime/geq/float_geq_float_01.noja-test new file mode 100644 index 0000000..ff6d8cc --- /dev/null +++ b/tests/runtime/geq/float_geq_float_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.0; + PUSHFLT 7.1; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/geq/float_geq_float_02.noja-test b/tests/runtime/geq/float_geq_float_02.noja-test new file mode 100644 index 0000000..2cb16c0 --- /dev/null +++ b/tests/runtime/geq/float_geq_float_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.1; + PUSHFLT 7.1; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/float_geq_float_03.noja-test b/tests/runtime/geq/float_geq_float_03.noja-test new file mode 100644 index 0000000..4486200 --- /dev/null +++ b/tests/runtime/geq/float_geq_float_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.2; + PUSHFLT 7.1; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/float_geq_float_04.noja-test b/tests/runtime/geq/float_geq_float_04.noja-test new file mode 100644 index 0000000..17912e2 --- /dev/null +++ b/tests/runtime/geq/float_geq_float_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.3; + PUSHFLT 7.1; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/float_geq_int_00.noja-test b/tests/runtime/geq/float_geq_int_00.noja-test new file mode 100644 index 0000000..9321e37 --- /dev/null +++ b/tests/runtime/geq/float_geq_int_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.8; + PUSHINT 7; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/geq/float_geq_int_01.noja-test b/tests/runtime/geq/float_geq_int_01.noja-test new file mode 100644 index 0000000..8380db0 --- /dev/null +++ b/tests/runtime/geq/float_geq_int_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.9; + PUSHINT 7; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/geq/float_geq_int_02.noja-test b/tests/runtime/geq/float_geq_int_02.noja-test new file mode 100644 index 0000000..e4fa5f4 --- /dev/null +++ b/tests/runtime/geq/float_geq_int_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.0; + PUSHINT 7; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/float_geq_int_03.noja-test b/tests/runtime/geq/float_geq_int_03.noja-test new file mode 100644 index 0000000..c05835d --- /dev/null +++ b/tests/runtime/geq/float_geq_int_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.1; + PUSHINT 7; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/float_geq_int_04.noja-test b/tests/runtime/geq/float_geq_int_04.noja-test new file mode 100644 index 0000000..5269b02 --- /dev/null +++ b/tests/runtime/geq/float_geq_int_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.2; + PUSHINT 7; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/int_geq_float_00.noja-test b/tests/runtime/geq/int_geq_float_00.noja-test new file mode 100644 index 0000000..47669e0 --- /dev/null +++ b/tests/runtime/geq/int_geq_float_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 6.8; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/int_geq_float_01.noja-test b/tests/runtime/geq/int_geq_float_01.noja-test new file mode 100644 index 0000000..231ddca --- /dev/null +++ b/tests/runtime/geq/int_geq_float_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 6.9; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/int_geq_float_02.noja-test b/tests/runtime/geq/int_geq_float_02.noja-test new file mode 100644 index 0000000..dbaf4ac --- /dev/null +++ b/tests/runtime/geq/int_geq_float_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.0; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/int_geq_float_03.noja-test b/tests/runtime/geq/int_geq_float_03.noja-test new file mode 100644 index 0000000..2c76836 --- /dev/null +++ b/tests/runtime/geq/int_geq_float_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.1; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/geq/int_geq_float_04.noja-test b/tests/runtime/geq/int_geq_float_04.noja-test new file mode 100644 index 0000000..4946d17 --- /dev/null +++ b/tests/runtime/geq/int_geq_float_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.2; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/geq/int_geq_int_00.noja-test b/tests/runtime/geq/int_geq_int_00.noja-test new file mode 100644 index 0000000..c989182 --- /dev/null +++ b/tests/runtime/geq/int_geq_int_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 1; + PUSHINT 2; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/geq/int_geq_int_01.noja-test b/tests/runtime/geq/int_geq_int_01.noja-test new file mode 100644 index 0000000..29eb97d --- /dev/null +++ b/tests/runtime/geq/int_geq_int_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 6; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/int_geq_int_02.noja-test b/tests/runtime/geq/int_geq_int_02.noja-test new file mode 100644 index 0000000..1f15499 --- /dev/null +++ b/tests/runtime/geq/int_geq_int_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 7; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/geq/int_geq_int_03.noja-test b/tests/runtime/geq/int_geq_int_03.noja-test new file mode 100644 index 0000000..09af97e --- /dev/null +++ b/tests/runtime/geq/int_geq_int_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 8; + GEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/float_grt_float_00.noja-test b/tests/runtime/grt/float_grt_float_00.noja-test new file mode 100644 index 0000000..659e88e --- /dev/null +++ b/tests/runtime/grt/float_grt_float_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.9; + PUSHFLT 7.1; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/float_grt_float_01.noja-test b/tests/runtime/grt/float_grt_float_01.noja-test new file mode 100644 index 0000000..58b7361 --- /dev/null +++ b/tests/runtime/grt/float_grt_float_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.0; + PUSHFLT 7.1; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/float_grt_float_02.noja-test b/tests/runtime/grt/float_grt_float_02.noja-test new file mode 100644 index 0000000..0f5aabd --- /dev/null +++ b/tests/runtime/grt/float_grt_float_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.1; + PUSHFLT 7.1; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/float_grt_float_03.noja-test b/tests/runtime/grt/float_grt_float_03.noja-test new file mode 100644 index 0000000..2bcde57 --- /dev/null +++ b/tests/runtime/grt/float_grt_float_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.2; + PUSHFLT 7.1; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/grt/float_grt_float_04.noja-test b/tests/runtime/grt/float_grt_float_04.noja-test new file mode 100644 index 0000000..597adab --- /dev/null +++ b/tests/runtime/grt/float_grt_float_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.3; + PUSHFLT 7.1; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/grt/float_grt_int_00.noja-test b/tests/runtime/grt/float_grt_int_00.noja-test new file mode 100644 index 0000000..1bf326c --- /dev/null +++ b/tests/runtime/grt/float_grt_int_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.8; + PUSHINT 7; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/float_grt_int_01.noja-test b/tests/runtime/grt/float_grt_int_01.noja-test new file mode 100644 index 0000000..05089d3 --- /dev/null +++ b/tests/runtime/grt/float_grt_int_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.9; + PUSHINT 7; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/float_grt_int_02.noja-test b/tests/runtime/grt/float_grt_int_02.noja-test new file mode 100644 index 0000000..22da88b --- /dev/null +++ b/tests/runtime/grt/float_grt_int_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.0; + PUSHINT 7; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/float_grt_int_03.noja-test b/tests/runtime/grt/float_grt_int_03.noja-test new file mode 100644 index 0000000..7f660a5 --- /dev/null +++ b/tests/runtime/grt/float_grt_int_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.1; + PUSHINT 7; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/grt/float_grt_int_04.noja-test b/tests/runtime/grt/float_grt_int_04.noja-test new file mode 100644 index 0000000..b9f576b --- /dev/null +++ b/tests/runtime/grt/float_grt_int_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.2; + PUSHINT 7; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/grt/int_grt_float_00.noja-test b/tests/runtime/grt/int_grt_float_00.noja-test new file mode 100644 index 0000000..4a99790 --- /dev/null +++ b/tests/runtime/grt/int_grt_float_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 6.8; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/grt/int_grt_float_01.noja-test b/tests/runtime/grt/int_grt_float_01.noja-test new file mode 100644 index 0000000..8529c8b --- /dev/null +++ b/tests/runtime/grt/int_grt_float_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 6.9; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/grt/int_grt_float_02.noja-test b/tests/runtime/grt/int_grt_float_02.noja-test new file mode 100644 index 0000000..d1b81b6 --- /dev/null +++ b/tests/runtime/grt/int_grt_float_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.0; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/int_grt_float_03.noja-test b/tests/runtime/grt/int_grt_float_03.noja-test new file mode 100644 index 0000000..94f496a --- /dev/null +++ b/tests/runtime/grt/int_grt_float_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.1; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/int_grt_float_04.noja-test b/tests/runtime/grt/int_grt_float_04.noja-test new file mode 100644 index 0000000..99c972b --- /dev/null +++ b/tests/runtime/grt/int_grt_float_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.2; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/int_grt_int_00.noja-test b/tests/runtime/grt/int_grt_int_00.noja-test new file mode 100644 index 0000000..f24c97f --- /dev/null +++ b/tests/runtime/grt/int_grt_int_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 1; + PUSHINT 2; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/int_grt_int_01.noja-test b/tests/runtime/grt/int_grt_int_01.noja-test new file mode 100644 index 0000000..5c5f0f8 --- /dev/null +++ b/tests/runtime/grt/int_grt_int_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 6; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/grt/int_grt_int_02.noja-test b/tests/runtime/grt/int_grt_int_02.noja-test new file mode 100644 index 0000000..01f7e42 --- /dev/null +++ b/tests/runtime/grt/int_grt_int_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 7; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/grt/int_grt_int_03.noja-test b/tests/runtime/grt/int_grt_int_03.noja-test new file mode 100644 index 0000000..78fa8eb --- /dev/null +++ b/tests/runtime/grt/int_grt_int_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 8; + GRT; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/leq/float_leq_float_00.noja-test b/tests/runtime/leq/float_leq_float_00.noja-test new file mode 100644 index 0000000..6581c50 --- /dev/null +++ b/tests/runtime/leq/float_leq_float_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.9; + PUSHFLT 7.1; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/leq/float_leq_float_01.noja-test b/tests/runtime/leq/float_leq_float_01.noja-test new file mode 100644 index 0000000..66e0667 --- /dev/null +++ b/tests/runtime/leq/float_leq_float_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.0; + PUSHFLT 7.1; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/leq/float_leq_float_02.noja-test b/tests/runtime/leq/float_leq_float_02.noja-test new file mode 100644 index 0000000..8c1aa57 --- /dev/null +++ b/tests/runtime/leq/float_leq_float_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.1; + PUSHFLT 7.1; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/leq/float_leq_float_03.noja-test b/tests/runtime/leq/float_leq_float_03.noja-test new file mode 100644 index 0000000..6e52e2d --- /dev/null +++ b/tests/runtime/leq/float_leq_float_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.2; + PUSHFLT 7.1; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/leq/float_leq_float_04.noja-test b/tests/runtime/leq/float_leq_float_04.noja-test new file mode 100644 index 0000000..5d4d188 --- /dev/null +++ b/tests/runtime/leq/float_leq_float_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.3; + PUSHFLT 7.1; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/leq/float_leq_int_00.noja-test b/tests/runtime/leq/float_leq_int_00.noja-test new file mode 100644 index 0000000..c856c7a --- /dev/null +++ b/tests/runtime/leq/float_leq_int_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.8; + PUSHINT 7; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/leq/float_leq_int_01.noja-test b/tests/runtime/leq/float_leq_int_01.noja-test new file mode 100644 index 0000000..dee7cc2 --- /dev/null +++ b/tests/runtime/leq/float_leq_int_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.9; + PUSHINT 7; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/leq/float_leq_int_02.noja-test b/tests/runtime/leq/float_leq_int_02.noja-test new file mode 100644 index 0000000..365926c --- /dev/null +++ b/tests/runtime/leq/float_leq_int_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.0; + PUSHINT 7; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/leq/float_leq_int_03.noja-test b/tests/runtime/leq/float_leq_int_03.noja-test new file mode 100644 index 0000000..035a226 --- /dev/null +++ b/tests/runtime/leq/float_leq_int_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.1; + PUSHINT 7; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/leq/float_leq_int_04.noja-test b/tests/runtime/leq/float_leq_int_04.noja-test new file mode 100644 index 0000000..229e453 --- /dev/null +++ b/tests/runtime/leq/float_leq_int_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.2; + PUSHINT 7; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/leq/int_leq_float_00.noja-test b/tests/runtime/leq/int_leq_float_00.noja-test new file mode 100644 index 0000000..4b3314f --- /dev/null +++ b/tests/runtime/leq/int_leq_float_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 6.8; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/leq/int_leq_float_01.noja-test b/tests/runtime/leq/int_leq_float_01.noja-test new file mode 100644 index 0000000..eb5b615 --- /dev/null +++ b/tests/runtime/leq/int_leq_float_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 6.9; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/leq/int_leq_float_02.noja-test b/tests/runtime/leq/int_leq_float_02.noja-test new file mode 100644 index 0000000..0b8df50 --- /dev/null +++ b/tests/runtime/leq/int_leq_float_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.0; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/leq/int_leq_float_03.noja-test b/tests/runtime/leq/int_leq_float_03.noja-test new file mode 100644 index 0000000..62bc1e6 --- /dev/null +++ b/tests/runtime/leq/int_leq_float_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.1; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/leq/int_leq_float_04.noja-test b/tests/runtime/leq/int_leq_float_04.noja-test new file mode 100644 index 0000000..79eefc0 --- /dev/null +++ b/tests/runtime/leq/int_leq_float_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.2; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/leq/int_leq_int_00.noja-test b/tests/runtime/leq/int_leq_int_00.noja-test new file mode 100644 index 0000000..430c5f2 --- /dev/null +++ b/tests/runtime/leq/int_leq_int_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 1; + PUSHINT 2; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/leq/int_leq_int_01.noja-test b/tests/runtime/leq/int_leq_int_01.noja-test new file mode 100644 index 0000000..548f86f --- /dev/null +++ b/tests/runtime/leq/int_leq_int_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 6; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/leq/int_leq_int_02.noja-test b/tests/runtime/leq/int_leq_int_02.noja-test new file mode 100644 index 0000000..2a1e1ba --- /dev/null +++ b/tests/runtime/leq/int_leq_int_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 7; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/leq/int_leq_int_03.noja-test b/tests/runtime/leq/int_leq_int_03.noja-test new file mode 100644 index 0000000..e5f354a --- /dev/null +++ b/tests/runtime/leq/int_leq_int_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 8; + LEQ; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/lss/float_lss_float_00.noja-test b/tests/runtime/lss/float_lss_float_00.noja-test new file mode 100644 index 0000000..2dbe844 --- /dev/null +++ b/tests/runtime/lss/float_lss_float_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.9; + PUSHFLT 7.1; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/lss/float_lss_float_01.noja-test b/tests/runtime/lss/float_lss_float_01.noja-test new file mode 100644 index 0000000..5f6b6b2 --- /dev/null +++ b/tests/runtime/lss/float_lss_float_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.0; + PUSHFLT 7.1; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/lss/float_lss_float_02.noja-test b/tests/runtime/lss/float_lss_float_02.noja-test new file mode 100644 index 0000000..82701e5 --- /dev/null +++ b/tests/runtime/lss/float_lss_float_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.1; + PUSHFLT 7.1; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/lss/float_lss_float_03.noja-test b/tests/runtime/lss/float_lss_float_03.noja-test new file mode 100644 index 0000000..1f52981 --- /dev/null +++ b/tests/runtime/lss/float_lss_float_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.2; + PUSHFLT 7.1; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/lss/float_lss_float_04.noja-test b/tests/runtime/lss/float_lss_float_04.noja-test new file mode 100644 index 0000000..7606c7d --- /dev/null +++ b/tests/runtime/lss/float_lss_float_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.3; + PUSHFLT 7.1; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/lss/float_lss_int_00.noja-test b/tests/runtime/lss/float_lss_int_00.noja-test new file mode 100644 index 0000000..4c1616f --- /dev/null +++ b/tests/runtime/lss/float_lss_int_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.8; + PUSHINT 7; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/lss/float_lss_int_01.noja-test b/tests/runtime/lss/float_lss_int_01.noja-test new file mode 100644 index 0000000..cdf00c7 --- /dev/null +++ b/tests/runtime/lss/float_lss_int_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 6.9; + PUSHINT 7; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/lss/float_lss_int_02.noja-test b/tests/runtime/lss/float_lss_int_02.noja-test new file mode 100644 index 0000000..41bd444 --- /dev/null +++ b/tests/runtime/lss/float_lss_int_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.0; + PUSHINT 7; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/lss/float_lss_int_03.noja-test b/tests/runtime/lss/float_lss_int_03.noja-test new file mode 100644 index 0000000..736a0fb --- /dev/null +++ b/tests/runtime/lss/float_lss_int_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.1; + PUSHINT 7; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/lss/float_lss_int_04.noja-test b/tests/runtime/lss/float_lss_int_04.noja-test new file mode 100644 index 0000000..a5349f7 --- /dev/null +++ b/tests/runtime/lss/float_lss_int_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHFLT 7.2; + PUSHINT 7; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/lss/int_lss_float_00.noja-test b/tests/runtime/lss/int_lss_float_00.noja-test new file mode 100644 index 0000000..2f5d458 --- /dev/null +++ b/tests/runtime/lss/int_lss_float_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 6.8; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/lss/int_lss_float_01.noja-test b/tests/runtime/lss/int_lss_float_01.noja-test new file mode 100644 index 0000000..f4e2f92 --- /dev/null +++ b/tests/runtime/lss/int_lss_float_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 6.9; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/lss/int_lss_float_02.noja-test b/tests/runtime/lss/int_lss_float_02.noja-test new file mode 100644 index 0000000..ce227f1 --- /dev/null +++ b/tests/runtime/lss/int_lss_float_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.0; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/lss/int_lss_float_03.noja-test b/tests/runtime/lss/int_lss_float_03.noja-test new file mode 100644 index 0000000..f8592d1 --- /dev/null +++ b/tests/runtime/lss/int_lss_float_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.1; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/lss/int_lss_float_04.noja-test b/tests/runtime/lss/int_lss_float_04.noja-test new file mode 100644 index 0000000..677efd5 --- /dev/null +++ b/tests/runtime/lss/int_lss_float_04.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHFLT 7.2; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/lss/int_lss_int_00.noja-test b/tests/runtime/lss/int_lss_int_00.noja-test new file mode 100644 index 0000000..916c245 --- /dev/null +++ b/tests/runtime/lss/int_lss_int_00.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 1; + PUSHINT 2; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/lss/int_lss_int_01.noja-test b/tests/runtime/lss/int_lss_int_01.noja-test new file mode 100644 index 0000000..4a61769 --- /dev/null +++ b/tests/runtime/lss/int_lss_int_01.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 6; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/lss/int_lss_int_02.noja-test b/tests/runtime/lss/int_lss_int_02.noja-test new file mode 100644 index 0000000..9aaef02 --- /dev/null +++ b/tests/runtime/lss/int_lss_int_02.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 7; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/lss/int_lss_int_03.noja-test b/tests/runtime/lss/int_lss_int_03.noja-test new file mode 100644 index 0000000..03a354f --- /dev/null +++ b/tests/runtime/lss/int_lss_int_03.noja-test @@ -0,0 +1,14 @@ +@type [runtime] + +@bytecode + + PUSHINT 7; + PUSHINT 8; + LSS; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/nql/float_nql_float_false.noja-test b/tests/runtime/nql/float_nql_float_false.noja-test new file mode 100644 index 0000000..f1f0a55 --- /dev/null +++ b/tests/runtime/nql/float_nql_float_false.noja-test @@ -0,0 +1,13 @@ +@type [runtime] + +@bytecode + PUSHFLT 7.2; + PUSHFLT 7.2; + NQL; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/nql/float_nql_float_true.noja-test b/tests/runtime/nql/float_nql_float_true.noja-test new file mode 100644 index 0000000..c58cc54 --- /dev/null +++ b/tests/runtime/nql/float_nql_float_true.noja-test @@ -0,0 +1,13 @@ +@type [runtime] + +@bytecode + PUSHFLT 7.2; + PUSHFLT 8.4; + NQL; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/nql/float_nql_int.noja-test b/tests/runtime/nql/float_nql_int.noja-test new file mode 100644 index 0000000..6c0199a --- /dev/null +++ b/tests/runtime/nql/float_nql_int.noja-test @@ -0,0 +1,13 @@ +@type [runtime] + +@bytecode + PUSHINT 7; + PUSHFLT 8.4; + NQL; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file diff --git a/tests/runtime/nql/int_nql_int_false.noja-test b/tests/runtime/nql/int_nql_int_false.noja-test new file mode 100644 index 0000000..e101941 --- /dev/null +++ b/tests/runtime/nql/int_nql_int_false.noja-test @@ -0,0 +1,13 @@ +@type [runtime] + +@bytecode + PUSHINT 7; + PUSHINT 7; + NQL; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [false] \ No newline at end of file diff --git a/tests/runtime/nql/int_nql_int_true.noja-test b/tests/runtime/nql/int_nql_int_true.noja-test new file mode 100644 index 0000000..da60f2c --- /dev/null +++ b/tests/runtime/nql/int_nql_int_true.noja-test @@ -0,0 +1,13 @@ +@type [runtime] + +@bytecode + PUSHINT 7; + PUSHINT 8; + NQL; + + PUSHVAR "print"; + CALL 1, 1; + POP 1; + EXIT; + +@output [true] \ No newline at end of file