From 463a6240fb70aedcb6c4e1e17f2718b3a89725c1 Mon Sep 17 00:00:00 2001 From: nyash-codex Date: Thu, 11 Dec 2025 17:24:32 +0900 Subject: [PATCH] chore(test): Improve phase246ex_atoi_mini test format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Change from string return ("PASS"/"FAIL") to numeric RC (0=success, 1=fail) - Add print("result = N") for stdout verification - Update comments to reflect new test format This makes test results verifiable via both stdout AND return code, avoiding future confusion about RC interpretation. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- apps/tests/phase246ex_atoi_mini.hako | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 } }