mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 20:42:04 +00:00
internal: more macro tests
This commit is contained in:
parent
7de4b964a9
commit
7989d567e2
5 changed files with 76 additions and 22 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue