refactor(joinir): make jump_args layout explicit (Phase 256)
This commit is contained in:
@ -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)"
|
||||
|
||||
@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user