aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax/tests
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2019-01-07 13:15:47 +0000
committerAleksey Kladov <[email protected]>2019-01-08 08:20:15 +0000
commitd91a98ec843ec8562c58ccb01a1e29d00cc744dc (patch)
treec628b6afbbe2e3a31ea88e6c16f556309dd0dde9 /crates/ra_syntax/tests
parent55272f2023e69f3eff727ecbf77078e1b45e7f86 (diff)
switch ra_syntax to new rowan API
Diffstat (limited to 'crates/ra_syntax/tests')
-rw-r--r--crates/ra_syntax/tests/test.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/crates/ra_syntax/tests/test.rs b/crates/ra_syntax/tests/test.rs
index 2235dc401..3243b27ae 100644
--- a/crates/ra_syntax/tests/test.rs
+++ b/crates/ra_syntax/tests/test.rs
@@ -9,8 +9,8 @@ use std::{
9 9
10use test_utils::{project_dir, dir_tests, read_text, collect_tests}; 10use test_utils::{project_dir, dir_tests, read_text, collect_tests};
11use ra_syntax::{ 11use ra_syntax::{
12 SourceFile, AstNode,
12 utils::{check_fuzz_invariants, dump_tree}, 13 utils::{check_fuzz_invariants, dump_tree},
13 SourceFileNode,
14}; 14};
15 15
16#[test] 16#[test]
@@ -27,7 +27,7 @@ fn parser_tests() {
27 &test_data_dir(), 27 &test_data_dir(),
28 &["parser/inline/ok", "parser/ok"], 28 &["parser/inline/ok", "parser/ok"],
29 |text, path| { 29 |text, path| {
30 let file = SourceFileNode::parse(text); 30 let file = SourceFile::parse(text);
31 let errors = file.errors(); 31 let errors = file.errors();
32 assert_eq!( 32 assert_eq!(
33 &*errors, 33 &*errors,
@@ -42,7 +42,7 @@ fn parser_tests() {
42 &test_data_dir(), 42 &test_data_dir(),
43 &["parser/err", "parser/inline/err"], 43 &["parser/err", "parser/inline/err"],
44 |text, path| { 44 |text, path| {
45 let file = SourceFileNode::parse(text); 45 let file = SourceFile::parse(text);
46 let errors = file.errors(); 46 let errors = file.errors();
47 assert_ne!( 47 assert_ne!(
48 &*errors, 48 &*errors,
@@ -85,7 +85,7 @@ fn self_hosting_parsing() {
85 { 85 {
86 count += 1; 86 count += 1;
87 let text = read_text(entry.path()); 87 let text = read_text(entry.path());
88 let node = SourceFileNode::parse(&text); 88 let node = SourceFile::parse(&text);
89 let errors = node.errors(); 89 let errors = node.errors();
90 assert_eq!( 90 assert_eq!(
91 &*errors, 91 &*errors,