022 if expression parsing

✓ Passing This code compiles and runs correctly.

Code

input.kz

Actual


╔══════════════════════════════════════════════════════════════╗
║     RUNTIME EXPRESSION PARSING TEST                          ║
╚══════════════════════════════════════════════════════════════╝

Test 1: score > 50 (with score=75)
  Parsing: 'score > 50'
  Parsed successfully!
  Result: .{ .bool_val = true } (truthy=true)
  ✓ TEST 1 PASSED

Test 2: score > threshold (75 > 50)
  Parsing: 'score > threshold'
  Parsed successfully!
  Result: .{ .bool_val = true } (truthy=true)
  ✓ TEST 2 PASSED

Test 3: role == "admin"
  Parsing: 'role == "admin"'
  Parsed successfully!
  Result: .{ .bool_val = true } (truthy=true)
  ✓ TEST 3 PASSED

Test 4: active and score > 50
  Parsing: 'active and score > 50'
  Parsed successfully!
  Result: .{ .bool_val = true } (truthy=true)
  ✓ TEST 4 PASSED

Test 5: user.role == "admin"
  Parsing: 'user.role == "admin"'
  Parsed successfully!
  Result: .{ .bool_val = true } (truthy=true)
  ✓ TEST 5 PASSED

╔══════════════════════════════════════════════════════════════╗
║     EXPRESSION PARSING TESTS COMPLETE                        ║
╚══════════════════════════════════════════════════════════════╝

Test Configuration

MUST_RUN