test: Phase 99 extend next_non_ws to 3 cases (VM+LLVM)

3ケース固定:
- 既存: "  hi" → 2, " \t" → -1
- 新規: "\n\r\tX" → 3 (mixed newline/CR/tab)

VM+LLVM EXE parity完全対応

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
nyash-codex
2025-12-17 04:25:57 +09:00
parent 6d73fc3404
commit b23d23f11f
3 changed files with 10 additions and 9 deletions

View File

@ -24,8 +24,9 @@ static box Main {
main() {
// Input mirrors MiniJsonLoader.next_non_ws
print(next_non_ws(" " + " " + "hi")) // expect 2
print(next_non_ws(" " + "\t")) // expect -1
print(next_non_ws(" " + " " + "hi")) // expect 2
print(next_non_ws(" " + "\t")) // expect -1
print(next_non_ws("\n" + "\r" + "\t" + "X")) // expect 3 (mixed newline/CR/tab)
return "OK"
}
}