mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-17 15:55:23 +00:00
internal: move outlined parser tests
This commit is contained in:
parent
f4cb0ff9be
commit
0f74758fea
353 changed files with 13703 additions and 10 deletions
|
@ -52,18 +52,23 @@ fn benchmark_parser() {
|
|||
|
||||
#[test]
|
||||
fn parser_tests() {
|
||||
dir_tests(&test_data_dir(), &["parser/inline/ok", "parser/ok"], "rast", |text, path| {
|
||||
dir_tests(&test_data_dir(), &["parser/inline/ok"], "rast", |text, path| {
|
||||
let parse = SourceFile::parse(text);
|
||||
let errors = parse.errors();
|
||||
assert_errors_are_absent(errors, path);
|
||||
parse.debug_dump()
|
||||
});
|
||||
dir_tests(&test_data_dir(), &["parser/err", "parser/inline/err"], "rast", |text, path| {
|
||||
let parse = SourceFile::parse(text);
|
||||
let errors = parse.errors();
|
||||
assert_errors_are_present(errors, path);
|
||||
parse.debug_dump()
|
||||
});
|
||||
dir_tests(
|
||||
&test_data_dir(),
|
||||
&["parser/inline/err", "parser/validation"],
|
||||
"rast",
|
||||
|text, path| {
|
||||
let parse = SourceFile::parse(text);
|
||||
let errors = parse.errors();
|
||||
assert_errors_are_present(errors, path);
|
||||
parse.debug_dump()
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue