diff options
author | Aleksey Kladov <[email protected]> | 2018-08-10 20:33:29 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-10 20:33:29 +0100 |
commit | 7c67612b8a894187fa3b64725531a5459f9211bf (patch) | |
tree | 9e2a536efa0c880d921fd8d4d74423afc9451fd4 /crates/libsyntax2/tests/parser.rs | |
parent | 26262aaf05983c5b7f41cc438e287523268fe1eb (diff) |
organizize
Diffstat (limited to 'crates/libsyntax2/tests/parser.rs')
-rw-r--r-- | crates/libsyntax2/tests/parser.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/libsyntax2/tests/parser.rs b/crates/libsyntax2/tests/parser.rs new file mode 100644 index 000000000..af2ae11bb --- /dev/null +++ b/crates/libsyntax2/tests/parser.rs | |||
@@ -0,0 +1,14 @@ | |||
1 | extern crate libsyntax2; | ||
2 | extern crate testutils; | ||
3 | |||
4 | use libsyntax2::parse; | ||
5 | use libsyntax2::utils::dump_tree; | ||
6 | use testutils::dir_tests; | ||
7 | |||
8 | #[test] | ||
9 | fn parser_tests() { | ||
10 | dir_tests(&["parser/inline", "parser/ok", "parser/err"], |text| { | ||
11 | let file = parse(text); | ||
12 | dump_tree(&file) | ||
13 | }) | ||
14 | } | ||