Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/parser/src/tests.rs')
| -rw-r--r-- | crates/parser/src/tests.rs | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/crates/parser/src/tests.rs b/crates/parser/src/tests.rs index 52388dacc6..c0437bc3b8 100644 --- a/crates/parser/src/tests.rs +++ b/crates/parser/src/tests.rs @@ -114,7 +114,13 @@ fn parse(entry: TopEntryPoint, text: &str) -> (String, bool) { errors.push(format!("error {}: {}\n", pos, msg)) } }); - assert_eq!(len, text.len()); + assert_eq!( + len, + text.len(), + "didn't parse all text.\nParsed:\n{}\n\nAll:\n{}\n", + &text[..len], + text + ); for (token, msg) in lexed.errors() { let pos = lexed.text_start(token); |