diff options
Diffstat (limited to 'tests/i')
28 files changed, 29 insertions, 29 deletions
diff --git a/tests/i/caught-errors/expected-stderr.txt b/tests/i/caught-errors/expected-stderr.txt new file mode 100644 index 0000000..7c5bfd1 --- /dev/null +++ b/tests/i/caught-errors/expected-stderr.txt @@ -0,0 +1,4 @@ +[Fatal] line 7: Division by zero +[Fatal] line 12: Array index out of bounds +[Fatal] line 17: Dereference of an unset pointer +[Fatal] line 22: File 'closed.txt' is not open diff --git a/tests/i/caught-errors/expected.txt b/tests/i/caught-errors/expected.txt index ae32ca6..6a677de 100644 --- a/tests/i/caught-errors/expected.txt +++ b/tests/i/caught-errors/expected.txt @@ -1,10 +1,6 @@ -[Fatal] line 7: Division by zero division caught -[Fatal] line 12: Array index out of bounds bounds caught -[Fatal] line 17: Dereference of an unset pointer pointer caught -[Fatal] line 22: File 'closed.txt' is not open file caught throw caught alive diff --git a/tests/i/class-delete-designators/expected-stderr.txt b/tests/i/class-delete-designators/expected-stderr.txt new file mode 100644 index 0000000..268ec7f --- /dev/null +++ b/tests/i/class-delete-designators/expected-stderr.txt @@ -0,0 +1 @@ +[Fatal] line 27: Invalid memory address (not an active allocation) diff --git a/tests/i/class-delete-designators/expected.txt b/tests/i/class-delete-designators/expected.txt index 3a62de6..b63409e 100644 --- a/tests/i/class-delete-designators/expected.txt +++ b/tests/i/class-delete-designators/expected.txt @@ -1,7 +1,6 @@ item:1 item:1 item:2 -[Fatal] line 27: Invalid memory address (not an active allocation) array caught item:3 item:0 diff --git a/tests/i/class-delete/expected-stderr.txt b/tests/i/class-delete/expected-stderr.txt new file mode 100644 index 0000000..bbd6b69 --- /dev/null +++ b/tests/i/class-delete/expected-stderr.txt @@ -0,0 +1,2 @@ +[Fatal] line 24: Invalid memory address (not an active allocation) +[Fatal] line 30: Invalid memory address (not an active allocation) diff --git a/tests/i/class-delete/expected.txt b/tests/i/class-delete/expected.txt index c7e7246..bb2c73d 100644 --- a/tests/i/class-delete/expected.txt +++ b/tests/i/class-delete/expected.txt @@ -3,9 +3,7 @@ pair pair leaf:2 leaf:1 -[Fatal] line 24: Invalid memory address (not an active allocation) double caught -[Fatal] line 30: Invalid memory address (not an active allocation) stack caught leaf:2 pair diff --git a/tests/i/class-unwind/expected-stderr.txt b/tests/i/class-unwind/expected-stderr.txt new file mode 100644 index 0000000..e9431ec --- /dev/null +++ b/tests/i/class-unwind/expected-stderr.txt @@ -0,0 +1 @@ +Unhandled exception. Program terminated. diff --git a/tests/i/class-unwind/expected.txt b/tests/i/class-unwind/expected.txt index 3503cb5..e563d2c 100644 --- a/tests/i/class-unwind/expected.txt +++ b/tests/i/class-unwind/expected.txt @@ -11,4 +11,3 @@ uncaught next destroy:2 destroy:1 destroy:3 -Unhandled exception. Program terminated. diff --git a/tests/i/enum-range/expected-stderr.txt b/tests/i/enum-range/expected-stderr.txt new file mode 100644 index 0000000..b0c5ea2 --- /dev/null +++ b/tests/i/enum-range/expected-stderr.txt @@ -0,0 +1 @@ +[Fatal] line 5: Value out of range for enum Season diff --git a/tests/i/enum-range/expected.txt b/tests/i/enum-range/expected.txt index f91d556..e6e3e04 100644 --- a/tests/i/enum-range/expected.txt +++ b/tests/i/enum-range/expected.txt @@ -1,3 +1,2 @@ -[Fatal] line 5: Value out of range for enum Season enum caught TRUE diff --git a/tests/i/function-call-statements/expected-stderr.txt b/tests/i/function-call-statements/expected-stderr.txt new file mode 100644 index 0000000..1741571 --- /dev/null +++ b/tests/i/function-call-statements/expected-stderr.txt @@ -0,0 +1 @@ +[Fatal] line 33: Division by zero diff --git a/tests/i/function-call-statements/expected.txt b/tests/i/function-call-statements/expected.txt index d2576ac..b35d820 100644 --- a/tests/i/function-call-statements/expected.txt +++ b/tests/i/function-call-statements/expected.txt @@ -2,5 +2,4 @@ 23 7 19 -[Fatal] line 33: Division by zero caught diff --git a/tests/i/input-targets/expected-stderr.txt b/tests/i/input-targets/expected-stderr.txt new file mode 100644 index 0000000..a53ae1f --- /dev/null +++ b/tests/i/input-targets/expected-stderr.txt @@ -0,0 +1,2 @@ +[Fatal] line 45: Array index out of bounds +[Fatal] line 51: Dereference of an unset pointer diff --git a/tests/i/input-targets/expected.txt b/tests/i/input-targets/expected.txt index 75640cd..ba27972 100644 --- a/tests/i/input-targets/expected.txt +++ b/tests/i/input-targets/expected.txt @@ -4,8 +4,6 @@ TRUE:-7 60:70 index evaluated 90 -[Fatal] line 45: Array index out of bounds bounds caught -[Fatal] line 51: Dereference of an unset pointer pointer caught 100 diff --git a/tests/i/memory-allocation/expected-stderr.txt b/tests/i/memory-allocation/expected-stderr.txt new file mode 100644 index 0000000..72d9e66 --- /dev/null +++ b/tests/i/memory-allocation/expected-stderr.txt @@ -0,0 +1,4 @@ +[Fatal] line 34: Invalid memory address (not an active allocation) +[Fatal] line 40: Invalid memory address (not an active allocation) +[Fatal] line 48: Invalid memory address (not an active allocation) +[Fatal] line 54: Memory allocation failed diff --git a/tests/i/memory-allocation/expected.txt b/tests/i/memory-allocation/expected.txt index 330c9ba..e007979 100644 --- a/tests/i/memory-allocation/expected.txt +++ b/tests/i/memory-allocation/expected.txt @@ -3,12 +3,8 @@ TRUE 42 11:22 TRUE -[Fatal] line 34: Invalid memory address (not an active allocation) double free caught -[Fatal] line 40: Invalid memory address (not an active allocation) stack address caught -[Fatal] line 48: Invalid memory address (not an active allocation) interior address caught -[Fatal] line 54: Memory allocation failed allocation failure caught 99 diff --git a/tests/i/memory-reallocation/expected-stderr.txt b/tests/i/memory-reallocation/expected-stderr.txt new file mode 100644 index 0000000..5478518 --- /dev/null +++ b/tests/i/memory-reallocation/expected-stderr.txt @@ -0,0 +1,6 @@ +[Fatal] line 28: Memory allocation failed +[Fatal] line 40: Invalid memory address (not an active allocation) +[Fatal] line 47: Invalid memory address (not an active allocation) +[Fatal] line 63: Invalid memory address (not an active allocation) +[Fatal] line 69: Invalid memory address (not an active allocation) +[Fatal] line 77: Invalid memory address (not an active allocation) diff --git a/tests/i/memory-reallocation/expected.txt b/tests/i/memory-reallocation/expected.txt index 9e9ccc9..bb43f4f 100644 --- a/tests/i/memory-reallocation/expected.txt +++ b/tests/i/memory-reallocation/expected.txt @@ -1,17 +1,11 @@ TRUE 12:34 12 -[Fatal] line 28: Memory allocation failed preserved:12 56 TRUE -[Fatal] line 40: Invalid memory address (not an active allocation) released address caught -[Fatal] line 47: Invalid memory address (not an active allocation) invalid zero resize caught 71 -[Fatal] line 63: Invalid memory address (not an active allocation) -[Fatal] line 69: Invalid memory address (not an active allocation) nested catch -[Fatal] line 77: Invalid memory address (not an active allocation) internal buffer caught diff --git a/tests/i/memory-uncaught/expected-stderr.txt b/tests/i/memory-uncaught/expected-stderr.txt new file mode 100644 index 0000000..448a57b --- /dev/null +++ b/tests/i/memory-uncaught/expected-stderr.txt @@ -0,0 +1,2 @@ +[Fatal] line 5: Invalid memory address (not an active allocation) +Unhandled exception. Program terminated. diff --git a/tests/i/memory-uncaught/expected.txt b/tests/i/memory-uncaught/expected.txt index 448a57b..e69de29 100644 --- a/tests/i/memory-uncaught/expected.txt +++ b/tests/i/memory-uncaught/expected.txt @@ -1,2 +0,0 @@ -[Fatal] line 5: Invalid memory address (not an active allocation) -Unhandled exception. Program terminated. diff --git a/tests/i/multifile-runtime-catch/expected-stderr.txt b/tests/i/multifile-runtime-catch/expected-stderr.txt new file mode 100644 index 0000000..833ca4b --- /dev/null +++ b/tests/i/multifile-runtime-catch/expected-stderr.txt @@ -0,0 +1 @@ +[Fatal] line 2: Division by zero diff --git a/tests/i/multifile-runtime-catch/expected.txt b/tests/i/multifile-runtime-catch/expected.txt index 731df7f..6a0b8ed 100644 --- a/tests/i/multifile-runtime-catch/expected.txt +++ b/tests/i/multifile-runtime-catch/expected.txt @@ -1,3 +1,2 @@ -[Fatal] line 2: Division by zero runtime caught 5 diff --git a/tests/i/multifile-uncaught/expected-stderr.txt b/tests/i/multifile-uncaught/expected-stderr.txt new file mode 100644 index 0000000..e9431ec --- /dev/null +++ b/tests/i/multifile-uncaught/expected-stderr.txt @@ -0,0 +1 @@ +Unhandled exception. Program terminated. diff --git a/tests/i/multifile-uncaught/expected.txt b/tests/i/multifile-uncaught/expected.txt index e9431ec..e69de29 100644 --- a/tests/i/multifile-uncaught/expected.txt +++ b/tests/i/multifile-uncaught/expected.txt @@ -1 +0,0 @@ -Unhandled exception. Program terminated. diff --git a/tests/i/signed-zero-division/expected-stderr.txt b/tests/i/signed-zero-division/expected-stderr.txt new file mode 100644 index 0000000..77a3113 --- /dev/null +++ b/tests/i/signed-zero-division/expected-stderr.txt @@ -0,0 +1 @@ +[Fatal] line 4: Division by zero diff --git a/tests/i/signed-zero-division/expected.txt b/tests/i/signed-zero-division/expected.txt index 0376278..a0e6b3f 100644 --- a/tests/i/signed-zero-division/expected.txt +++ b/tests/i/signed-zero-division/expected.txt @@ -1,2 +1 @@ -[Fatal] line 4: Division by zero zero caught diff --git a/tests/i/uncaught-error/expected-stderr.txt b/tests/i/uncaught-error/expected-stderr.txt new file mode 100644 index 0000000..8b66756 --- /dev/null +++ b/tests/i/uncaught-error/expected-stderr.txt @@ -0,0 +1,2 @@ +[Fatal] line 3: Division by zero +Unhandled exception. Program terminated. diff --git a/tests/i/uncaught-error/expected.txt b/tests/i/uncaught-error/expected.txt index 8b66756..e69de29 100644 --- a/tests/i/uncaught-error/expected.txt +++ b/tests/i/uncaught-error/expected.txt @@ -1,2 +0,0 @@ -[Fatal] line 3: Division by zero -Unhandled exception. Program terminated. |
