Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/syntax/src/tests.rs')
-rw-r--r--crates/syntax/src/tests.rs19
1 files changed, 12 insertions, 7 deletions
diff --git a/crates/syntax/src/tests.rs b/crates/syntax/src/tests.rs
index 69c5b1cd35..65fcaee9a8 100644
--- a/crates/syntax/src/tests.rs
+++ b/crates/syntax/src/tests.rs
@@ -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]