Skip to content

Commit a1fb575

Browse files
committed
Add another test for error reporting
1 parent 13346fe commit a1fb575

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

tests/query_errors.rs

+1
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ fn test_error(filename: &str) {
1919
}
2020

2121
#[test] fn invalid_curly_brace() { test_error("invalid_curly_brace"); }
22+
#[test] fn bad_args() { test_error("bad_args"); }

tests/query_errors/bad_args.txt

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
query MyQuery {
2+
field1([something])
3+
}
4+
---
5+
query parse error: Parse error at 2:10
6+
Unexpected `[[Punctuator]`
7+
Expected `Name`

0 commit comments

Comments
 (0)