aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-01-06 18:54:55 +0000
committerAleksey Kladov <[email protected]>2018-01-06 18:54:55 +0000
commit31a07da88dc9473a9f05617a98db6180e6e9e3c6 (patch)
tree5641d1243a669eb0c611113367a9ca90c1989a66 /tests
parentd0900b3ca7be669418e185c0eea0d92550d83d4d (diff)
Boolean results
Diffstat (limited to 'tests')
-rw-r--r--tests/data/parser/0002_struct_item_field.txt2
-rw-r--r--tests/parser.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/data/parser/0002_struct_item_field.txt b/tests/data/parser/0002_struct_item_field.txt
index b1673ade3..87ab3f7a9 100644
--- a/tests/data/parser/0002_struct_item_field.txt
+++ b/tests/data/parser/0002_struct_item_field.txt
@@ -12,4 +12,4 @@ FILE@[0; 25)
12 WHITESPACE@[19; 20) 12 WHITESPACE@[19; 20)
13 IDENT@[20; 23) 13 IDENT@[20; 23)
14 WHITESPACE@[23; 24) 14 WHITESPACE@[23; 24)
15 R_CURLY@[24; 25) \ No newline at end of file 15 R_CURLY@[24; 25)
diff --git a/tests/parser.rs b/tests/parser.rs
index 5c63be3be..6c31463ad 100644
--- a/tests/parser.rs
+++ b/tests/parser.rs
@@ -49,7 +49,7 @@ fn parser_test_case(path: &Path) {
49 return 49 return
50 } 50 }
51 if expected.trim() == actual.trim() { 51 if expected.trim() == actual.trim() {
52 panic!("Whitespace difference!") 52 panic!("Whitespace difference! {}", path.display())
53 } 53 }
54 assert_diff!(expected, actual, "\n", 0) 54 assert_diff!(expected, actual, "\n", 0)
55} 55}