internal: move outlined parser tests

This commit is contained in:
Aleksey Kladov 2021-12-26 17:58:33 +03:00
parent f4cb0ff9be
commit 0f74758fea
353 changed files with 13703 additions and 10 deletions

View file

@ -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]