diff --git a/apps/tests/phase246ex_atoi_mini.hako b/apps/tests/phase246ex_atoi_mini.hako index 486ddfc3..0ed76df8 100644 --- a/apps/tests/phase246ex_atoi_mini.hako +++ b/apps/tests/phase246ex_atoi_mini.hako @@ -1,5 +1,6 @@ // Phase 246-EX: Minimal _atoi test // Tests NumberAccumulation pattern: result = result * 10 + digit_pos +// Prints "result = N" to stdout, returns 0 on success (42), 1 on failure. static box Phase246ExAtoiMini { main() { @@ -8,10 +9,11 @@ static box Phase246ExAtoiMini { local result = me.atoi(s, len) // Expected: 42 + print("result = " + result) if result == 42 { - return "PASS" + return 0 } else { - return "FAIL" + return 1 } }