aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-07-29 13:16:07 +0100
committerAleksey Kladov <[email protected]>2018-07-29 13:16:07 +0100
commit415c891d641fa305e7ddbbbcc78db990dd5d3564 (patch)
tree4b6e1e0aa4b5a732aeae8945e75c9bee3bbf1d65 /tests
parentad188d4c3db34f035408afbdd6d2f3c308121f0a (diff)
Reorganize
Diffstat (limited to 'tests')
-rw-r--r--tests/parser.rs5
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 @@
1extern crate libsyntax2; 1extern crate libsyntax2;
2extern crate testutils; 2extern crate testutils;
3 3
4use libsyntax2::{tokenize, parse_green}; 4use libsyntax2::{parse};
5use libsyntax2::utils::{dump_tree_green}; 5use libsyntax2::utils::{dump_tree_green};
6use testutils::dir_tests; 6use testutils::dir_tests;
7 7
8#[test] 8#[test]
9fn parser_tests() { 9fn 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}