Skip to content

Commit 6420c22

Browse files
committed
test: update error expectations for variable resolution tests
1 parent d59a3c5 commit 6420c22

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

test_programs/r4/1.lox

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
expected_error_type: none
33
---
44
var a = "value";
5-
var a = a;
5+
var a = a; // global scope, so this is allowed
66
print a; // expect: value

test_programs/r5/1.lox

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
---
2-
expected_error_type: none
2+
expected_error_type: compile
33
---
4+
return "foo";

test_programs/r6/2.lox

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
2-
expected_error_type: compile
2+
expected_error_type: runtime
33
---
4-
print a; // expect: compile error
4+
print a; // expect: runtime error
55
var a = "value";
66
print a; // expect: value

0 commit comments

Comments
 (0)