Skip to content

Commit e32699b

Browse files
committed
fix: correct variable references in test fixtures and update expected output
1 parent 68571a5 commit e32699b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/test_helpers/fixtures/pass_statements

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -572,14 +572,14 @@ Debug = true
572572
[stage-1] [test-4.lox]  print foo;
573573
[stage-1] [test-4.lox]  print baz;
574574
[stage-1] [test-4.lox] }
575-
[stage-1] [test-4.lox] print baz;
575+
[stage-1] [test-4.lox] print foo;
576576
[stage-1] [test-4.lox] 
577577
[stage-1] [test-4] $ ./your_program.sh run test.lox
578578
[your_program] modified foo
579579
[your_program] inner baz
580580
[your_program] modified foo
581581
[your_program] outer baz
582-
[your_program] Undefined variable 'baz'.
582+
[your_program] Undefined variable 'foo'.
583583
[your_program] [line 17]
584584
[stage-1] [test-4] ✓ 4 line(s) match on stdout
585585
[stage-1] [test-4] ✓ Received exit code 70.

test_programs/s10/4.lox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ expected_error_type: runtime
1717
print <<RANDOM_STRING_1>>;
1818
print <<RANDOM_STRING_2>>;
1919
}
20-
print <<RANDOM_STRING_2>>;
20+
print <<RANDOM_STRING_1>>;

0 commit comments

Comments
 (0)