From 863bfec23df598b476e26559c117791d1083611a Mon Sep 17 00:00:00 2001 From: dam Date: Sun, 22 Dec 2024 01:59:58 +0000 Subject: Update code to comply with compiler beta 0.1.094. --- TUI/tests.jai | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'TUI/tests.jai') diff --git a/TUI/tests.jai b/TUI/tests.jai index a740e6b..7e591b8 100644 --- a/TUI/tests.jai +++ b/TUI/tests.jai @@ -10,7 +10,7 @@ main :: () { } else { assert(TUI.reset_terminal(), "Failed to reset TUI."); - print("- ERROR: %", error_message, to_standard_error = true); + print("- ERROR: %\n", error_message, to_standard_error = true); exit(1); } } @@ -19,7 +19,7 @@ main :: () { x, y := TUI.get_cursor_position(); TUI.set_cursor_position(1, y+1); } - + if 1 { print("TEST : set and get cursor position\n", to_standard_error = true); assert(TUI.setup_terminal(), "Failed to setup TUI."); @@ -157,12 +157,9 @@ main :: () { TUI.set_cursor_position(x, y); print("size = %x%\n", width, height); key = TUI.get_key(1000); - - // __mark := get_temporary_storage_mark(); - // set_temporary_storage_mark(__mark); } - print("- success"); assert(TUI.reset_terminal(), "Failed to reset TUI."); + assert_result(true, ""); } if 1 { -- cgit v1.2.3