diff options
author | Aleksey Kladov <[email protected]> | 2018-07-29 13:16:07 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-29 13:16:07 +0100 |
commit | 415c891d641fa305e7ddbbbcc78db990dd5d3564 (patch) | |
tree | 4b6e1e0aa4b5a732aeae8945e75c9bee3bbf1d65 /tests | |
parent | ad188d4c3db34f035408afbdd6d2f3c308121f0a (diff) |
Reorganize
Diffstat (limited to 'tests')
-rw-r--r-- | tests/parser.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/parser.rs b/tests/parser.rs index 1b86fe55a..3b6670cb0 100644 --- a/tests/parser.rs +++ b/tests/parser.rs | |||
@@ -1,15 +1,14 @@ | |||
1 | extern crate libsyntax2; | 1 | extern crate libsyntax2; |
2 | extern crate testutils; | 2 | extern crate testutils; |
3 | 3 | ||
4 | use libsyntax2::{tokenize, parse_green}; | 4 | use libsyntax2::{parse}; |
5 | use libsyntax2::utils::{dump_tree_green}; | 5 | use libsyntax2::utils::{dump_tree_green}; |
6 | use testutils::dir_tests; | 6 | use testutils::dir_tests; |
7 | 7 | ||
8 | #[test] | 8 | #[test] |
9 | fn parser_tests() { | 9 | fn parser_tests() { |
10 | dir_tests(&["parser/inline", "parser/ok", "parser/err"], |text| { | 10 | dir_tests(&["parser/inline", "parser/ok", "parser/err"], |text| { |
11 | let tokens = tokenize(text); | 11 | let file = parse(text.to_string()); |
12 | let file = parse_green(text.to_string(), &tokens); | ||
13 | dump_tree_green(&file) | 12 | dump_tree_green(&file) |
14 | }) | 13 | }) |
15 | } | 14 | } |