aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/tests')
-rw-r--r--crates/libsyntax2/tests/test/main.rs6
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
12use libsyntax2::File;
13
12#[test] 14#[test]
13fn lexer_tests() { 15fn lexer_tests() {
14 dir_tests(&["lexer"], |text| { 16 dir_tests(&["lexer"], |text| {
@@ -20,8 +22,8 @@ fn lexer_tests() {
20#[test] 22#[test]
21fn parser_tests() { 23fn 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