Closed littlewhitecloud closed 7 months ago
You could use a # Output:
comment. This test works:
import "stdlib/io.jou"
# Output: compiler error in file "tests/other_errors/asdasd.jou", line 5: missing ' to end the byte literal
def main() -> int:
printf('?)
return 0
thanks!
Test like this:
And output:
*** Command: jou -O3 tests/other_errors/source_file_contain_zero_byte.jou ***
--- /dev/fd/63 2023-12-16 06:07:20.807290345 +0000
+++ /dev/fd/62 2023-12-16 06:07:20.807290345 +0000
@@ -1 +1,2 @@
+compiler error in file "tests/other_errors/source_file_contain_zero_byte.jou", line 6: source file contains a zero byte