aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/data/parser/err/0001_item_recovery_in_file.txt4
-rw-r--r--tests/data/parser/err/0004_use_path_bad_segment.txt5
2 files changed, 7 insertions, 2 deletions
diff --git a/tests/data/parser/err/0001_item_recovery_in_file.txt b/tests/data/parser/err/0001_item_recovery_in_file.txt
index 730367694..0ac741aa8 100644
--- a/tests/data/parser/err/0001_item_recovery_in_file.txt
+++ b/tests/data/parser/err/0001_item_recovery_in_file.txt
@@ -1,8 +1,10 @@
1FILE@[0; 21) 1FILE@[0; 21)
2 ERROR@[0; 10) 2 ERROR@[0; 3)
3 err: `expected item` 3 err: `expected item`
4 IDENT@[0; 2) 4 IDENT@[0; 2)
5 WHITESPACE@[2; 3) 5 WHITESPACE@[2; 3)
6 ERROR@[3; 10)
7 err: `expected item`
6 IDENT@[3; 8) 8 IDENT@[3; 8)
7 WHITESPACE@[8; 10) 9 WHITESPACE@[8; 10)
8 STRUCT_ITEM@[10; 21) 10 STRUCT_ITEM@[10; 21)
diff --git a/tests/data/parser/err/0004_use_path_bad_segment.txt b/tests/data/parser/err/0004_use_path_bad_segment.txt
index cd7e86d68..adc049683 100644
--- a/tests/data/parser/err/0004_use_path_bad_segment.txt
+++ b/tests/data/parser/err/0004_use_path_bad_segment.txt
@@ -11,7 +11,10 @@ FILE@[0; 12)
11 PATH_SEGMENT@[9; 9) 11 PATH_SEGMENT@[9; 9)
12 err: `expected identifier` 12 err: `expected identifier`
13 err: `expected SEMI` 13 err: `expected SEMI`
14 ERROR@[9; 12) 14 ERROR@[9; 11)
15 err: `expected item` 15 err: `expected item`
16 INT_NUMBER@[9; 11) 16 INT_NUMBER@[9; 11)
17 ERROR@[11; 12)
18 err: `expected item, found `;`
19consider removing this semicolon`
17 SEMI@[11; 12) 20 SEMI@[11; 12)