aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/parser/err/0000_struct_field_missing_comma.rs4
-rw-r--r--tests/data/parser/err/0000_struct_field_missing_comma.txt20
-rw-r--r--tests/data/parser/ok/0000_empty.rs (renamed from tests/data/parser/0000_empty.rs)0
-rw-r--r--tests/data/parser/ok/0000_empty.txt (renamed from tests/data/parser/0000_empty.txt)0
-rw-r--r--tests/data/parser/ok/0001_struct_item.rs (renamed from tests/data/parser/0001_struct_item.rs)0
-rw-r--r--tests/data/parser/ok/0001_struct_item.txt (renamed from tests/data/parser/0001_struct_item.txt)0
-rw-r--r--tests/data/parser/ok/0002_struct_item_field.rs (renamed from tests/data/parser/0002_struct_item_field.rs)0
-rw-r--r--tests/data/parser/ok/0002_struct_item_field.txt (renamed from tests/data/parser/0002_struct_item_field.txt)0
8 files changed, 24 insertions, 0 deletions
diff --git a/tests/data/parser/err/0000_struct_field_missing_comma.rs b/tests/data/parser/err/0000_struct_field_missing_comma.rs
new file mode 100644
index 000000000..fe5030d89
--- /dev/null
+++ b/tests/data/parser/err/0000_struct_field_missing_comma.rs
@@ -0,0 +1,4 @@
1struct S {
2 a: u32
3 b: u32
4} \ No newline at end of file
diff --git a/tests/data/parser/err/0000_struct_field_missing_comma.txt b/tests/data/parser/err/0000_struct_field_missing_comma.txt
new file mode 100644
index 000000000..e2e99bb63
--- /dev/null
+++ b/tests/data/parser/err/0000_struct_field_missing_comma.txt
@@ -0,0 +1,20 @@
1FILE@[0; 34)
2 STRUCT_ITEM@[0; 34) err: `expected COMMA`
3 STRUCT_KW@[0; 6)
4 WHITESPACE@[6; 7)
5 IDENT@[7; 8)
6 WHITESPACE@[8; 9)
7 L_CURLY@[9; 10)
8 STRUCT_FIELD@[10; 26)
9 WHITESPACE@[10; 15)
10 IDENT@[15; 16)
11 COLON@[16; 17)
12 WHITESPACE@[17; 18)
13 IDENT@[18; 21)
14 WHITESPACE@[21; 26)
15 STRUCT_FIELD@[26; 33)
16 IDENT@[26; 27)
17 COLON@[27; 28)
18 WHITESPACE@[28; 29)
19 IDENT@[29; 32)
20 WHITESPACE@[32; \ No newline at end of file
diff --git a/tests/data/parser/0000_empty.rs b/tests/data/parser/ok/0000_empty.rs
index e69de29bb..e69de29bb 100644
--- a/tests/data/parser/0000_empty.rs
+++ b/tests/data/parser/ok/0000_empty.rs
diff --git a/tests/data/parser/0000_empty.txt b/tests/data/parser/ok/0000_empty.txt
index 54be3e7bc..54be3e7bc 100644
--- a/tests/data/parser/0000_empty.txt
+++ b/tests/data/parser/ok/0000_empty.txt
diff --git a/tests/data/parser/0001_struct_item.rs b/tests/data/parser/ok/0001_struct_item.rs
index d3a8c1d23..d3a8c1d23 100644
--- a/tests/data/parser/0001_struct_item.rs
+++ b/tests/data/parser/ok/0001_struct_item.rs
diff --git a/tests/data/parser/0001_struct_item.txt b/tests/data/parser/ok/0001_struct_item.txt
index f599e9d2c..f599e9d2c 100644
--- a/tests/data/parser/0001_struct_item.txt
+++ b/tests/data/parser/ok/0001_struct_item.txt
diff --git a/tests/data/parser/0002_struct_item_field.rs b/tests/data/parser/ok/0002_struct_item_field.rs
index cc3866d25..cc3866d25 100644
--- a/tests/data/parser/0002_struct_item_field.rs
+++ b/tests/data/parser/ok/0002_struct_item_field.rs
diff --git a/tests/data/parser/0002_struct_item_field.txt b/tests/data/parser/ok/0002_struct_item_field.txt
index 87ab3f7a9..87ab3f7a9 100644
--- a/tests/data/parser/0002_struct_item_field.txt
+++ b/tests/data/parser/ok/0002_struct_item_field.txt