020 interpreter if e2e

✗ Failing This test is currently failing.

Failed: output

Failure Output

🎯 Compiler coordination: Passes: 14 (flow-based: frontend, analysis, emission)

Code

input.kz

Actual


╔══════════════════════════════════════════════════════════════╗
║     INTERPRETER ~if END-TO-END TEST                          ║
╚══════════════════════════════════════════════════════════════╝

Test 1: ~if(true) -> | then |> -> yes branch
  [EXEC] Detected ~if
  [EXEC] Arg value: 'true'
  [EXEC] Condition=true, branch='then'
  [EXEC] Matched continuation: | then |>
  Result branch: then
  ✗ TEST 1 FAILED - expected 'yes', got 'then'

Test 2: ~if(false) -> | else |> -> no branch
  [EXEC] Detected ~if
  [EXEC] Arg value: 'false'
  [EXEC] Condition=false, branch='else'
  [EXEC] Matched continuation: | else |>
  Result branch: else
  ✗ TEST 2 FAILED - expected 'no', got 'else'

╔══════════════════════════════════════════════════════════════╗
║     INTERPRETER ~if E2E TESTS COMPLETE                       ║
╚══════════════════════════════════════════════════════════════╝

Expected output


╔══════════════════════════════════════════════════════════════╗
║     INTERPRETER ~if END-TO-END TEST                          ║
╚══════════════════════════════════════════════════════════════╝

Test 1: ~if(true) -> | then |> -> yes branch
  [EXEC] Detected ~if
  [EXEC] Arg value: 'true'
  [EXEC] Condition=true, branch='then'
  [EXEC] Matched continuation: | then |>
  [EXEC] Building branch constructor: yes
  Result branch: yes
  ✓ TEST 1 PASSED - took | then |> branch

Test 2: ~if(false) -> | else |> -> no branch
  [EXEC] Detected ~if
  [EXEC] Arg value: 'false'
  [EXEC] Condition=false, branch='else'
  [EXEC] Matched continuation: | else |>
  [EXEC] Building branch constructor: no
  Result branch: no
  ✓ TEST 2 PASSED - took | else |> branch

╔══════════════════════════════════════════════════════════════╗
║     INTERPRETER ~if E2E TESTS COMPLETE                       ║
╚══════════════════════════════════════════════════════════════╝

Test Configuration

MUST_RUN