diff options
author | Aleksey Kladov <[email protected]> | 2018-08-25 10:10:35 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-25 10:10:35 +0100 |
commit | 87cd57d56aeafa1117a6163249d210f39efe8f28 (patch) | |
tree | a917b4bff6164902d26ed5334f94c6e76745bfbc /crates/libsyntax2/tests/test/main.rs | |
parent | a44428fc796cb5afb5b85cd246974e590eef2040 (diff) |
Refactor
Diffstat (limited to 'crates/libsyntax2/tests/test/main.rs')
-rw-r--r-- | crates/libsyntax2/tests/test/main.rs | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crates/libsyntax2/tests/test/main.rs b/crates/libsyntax2/tests/test/main.rs index 7e5dc32d9..18c711aee 100644 --- a/crates/libsyntax2/tests/test/main.rs +++ b/crates/libsyntax2/tests/test/main.rs | |||
@@ -9,6 +9,8 @@ use std::{ | |||
9 | fmt::Write, | 9 | fmt::Write, |
10 | }; | 10 | }; |
11 | 11 | ||
12 | use libsyntax2::File; | ||
13 | |||
12 | #[test] | 14 | #[test] |
13 | fn lexer_tests() { | 15 | fn lexer_tests() { |
14 | dir_tests(&["lexer"], |text| { | 16 | dir_tests(&["lexer"], |text| { |
@@ -20,8 +22,8 @@ fn lexer_tests() { | |||
20 | #[test] | 22 | #[test] |
21 | fn parser_tests() { | 23 | fn parser_tests() { |
22 | dir_tests(&["parser/inline", "parser/ok", "parser/err"], |text| { | 24 | dir_tests(&["parser/inline", "parser/ok", "parser/err"], |text| { |
23 | let file = libsyntax2::parse(text); | 25 | let file = File::parse(text); |
24 | libsyntax2::utils::dump_tree(file.borrowed()) | 26 | libsyntax2::utils::dump_tree(file.syntax()) |
25 | }) | 27 | }) |
26 | } | 28 | } |
27 | 29 | ||