refactor(joinir): make jump_args layout explicit (Phase 256)

This commit is contained in:
2025-12-20 13:04:24 +09:00
parent 1028bd419c
commit 4439d64da3
21 changed files with 715 additions and 195 deletions

View File

@ -2,13 +2,16 @@
# Phase 254 P0: index_of 形 loop (VM backend)
set -euo pipefail
HAKORUNE_BIN="${HAKORUNE_BIN:-./target/release/hakorune}"
HAKO_PATH="apps/tests/phase254_p0_index_of_min.hako"
# Test: "abc".index_of("b") → 1
EXPECTED_EXIT=1
set +e
$HAKORUNE_BIN --backend vm "$HAKO_PATH"
actual_exit=$?
set -e
if [[ $actual_exit -eq $EXPECTED_EXIT ]]; then
echo "✅ phase254_p0_index_of_vm: PASS (exit=$actual_exit)"

View File

@ -5,8 +5,10 @@ HAKORUNE_BIN="${HAKORUNE_BIN:-./target/release/hakorune}"
HAKO_PATH="apps/tests/phase256_p0_split_min.hako"
EXPECTED_EXIT=3
set +e
$HAKORUNE_BIN --backend vm "$HAKO_PATH" >/dev/null 2>&1
actual_exit=$?
set -e
if [[ $actual_exit -eq $EXPECTED_EXIT ]]; then
echo "✅ phase256_p0_split_vm: PASS (exit=$actual_exit)"