Logo
Explore Help
Register Sign In
tomoaki/hakorune
1
0
Fork 0
You've already forked hakorune
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
d94db2cfc3ec1eed0525aaa910c2e8a21b0babd7
hakorune/apps/tests/phase100_mutable_accumulator_min.hako

17 lines
315 B
Plaintext
Raw Normal View History

test: Phase 100 mutable accumulator fixture + smoke (numeric validation) - Add apps/tests/phase100_mutable_accumulator_min.hako * Pattern2 with break (if i >= 3 { break }) * Two accumulators: out = out + ch (string), count = count + 1 (integer) * print(count) for stable numeric output - Add phase100_mutable_accumulator_vm.sh smoke test * HAKO_JOINIR_STRICT=1 validation * Numeric-only output extraction (expected: 3) - Regression: all phase100/96/94 tests pass 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-17 06:10:59 +09:00
static box Main {
main() {
local out = ""
local count = 0
local i = 0
loop(i < 10) {
if i >= 3 { break }
local ch = "x"
out = out + ch
count = count + 1
i = i + 1
}
print(count)
return 0
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.24.2 Page: 48ms Template: 1ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API