diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/data/parser/0002_struct_item_field.txt | 2 | ||||
-rw-r--r-- | tests/parser.rs | 2 |
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 | } |