fix(joinir): Phase 96 next_non_ws break condition SSOT

This commit is contained in:
nyash-codex
2025-12-17 01:59:21 +09:00
parent db4453eb3c
commit bc1a09f2c3
6 changed files with 106 additions and 40 deletions

View File

@ -27,13 +27,13 @@ if [ "$EXIT_CODE" -eq 124 ]; then
echo "[FAIL] hakorune timed out (>${RUN_TIMEOUT_SECS}s)"
FAIL_COUNT=$((FAIL_COUNT + 1))
elif [ "$EXIT_CODE" -eq 0 ]; then
EXPECTED=$'0\n0'
EXPECTED=$'2\n-1'
CLEAN=$(printf "%s\n" "$OUTPUT" | grep -E '^-?[0-9]+$' | head -n 2 | paste -sd '\n' - | tr -d '\r')
if [ "$CLEAN" = "$EXPECTED" ]; then
echo "[PASS] Output verified: 0 then 0"
echo "[PASS] Output verified: 2 then -1"
PASS_COUNT=$((PASS_COUNT + 1))
else
echo "[FAIL] Unexpected output (expected lines: 0 then 0)"
echo "[FAIL] Unexpected output (expected lines: 2 then -1)"
echo "[INFO] output (tail):"
echo "$OUTPUT" | tail -n 50 || true
FAIL_COUNT=$((FAIL_COUNT + 1))