From 06fb5aceeb65a75b1cd643debd667c52fdcafcb9 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Sun, 8 Nov 2026 14:10:02 -0800 Subject: Better error messages Better error messages. Buffs to the std lib; getch() to fetch a single character; streaming I/O handles retries, and large sizes, with better error reporting. Formatted strings. Default int moved to i32. TicTacToe, the game. --- chapter30/src/test/java/com/seaofnodes/simple/Chapter15Test.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chapter30/src/test/java/com/seaofnodes/simple/Chapter15Test.java') diff --git a/chapter30/src/test/java/com/seaofnodes/simple/Chapter15Test.java b/chapter30/src/test/java/com/seaofnodes/simple/Chapter15Test.java index c2071cb6..97c3af46 100644 --- a/chapter30/src/test/java/com/seaofnodes/simple/Chapter15Test.java +++ b/chapter30/src/test/java/com/seaofnodes/simple/Chapter15Test.java @@ -157,7 +157,7 @@ return a; """); code.driver(CodeGen.Phase.FinalizeIR); assertEquals("return []*Test._A?;", code.print()); - assertEquals("*Test._A {i64 !i; }?[ null,null]", Eval2.eval(code, 0)); + assertEquals("*Test._A {i32 !i; }?[ null,null]", Eval2.eval(code, 0)); } @Test @@ -312,7 +312,7 @@ flt is = new int[2]; return is; """); try { code.driver(CodeGen.Phase.TypeCheck); fail(); } - catch( Exception e ) { assertEquals("Type *[]i64 is not of declared type flt",e.getMessage()); } + catch( Exception e ) { assertEquals("Type *[]i32 is not of declared type flt",e.getMessage()); } } @Test -- cgit v1.2.3