aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_syntax
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-07-09 10:47:27 +0100
committerAleksey Kladov <[email protected]>2020-07-09 10:47:27 +0100
commit8e1ebbcc136d1bb8f120d0db2625b70a37b756f8 (patch)
treeae8f546d6822b0727da89e82d224496f130685a9 /crates/ra_syntax
parentf9d41bd18fa8e51580f223464d200342de7c6d4a (diff)
Simplify
Diffstat (limited to 'crates/ra_syntax')
-rw-r--r--crates/ra_syntax/src/tests.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_syntax/src/tests.rs b/crates/ra_syntax/src/tests.rs
index a5b6e972e..aa78735da 100644
--- a/crates/ra_syntax/src/tests.rs
+++ b/crates/ra_syntax/src/tests.rs
@@ -4,6 +4,7 @@ use std::{
4 path::{Component, Path, PathBuf}, 4 path::{Component, Path, PathBuf},
5}; 5};
6 6
7use expect::expect_file;
7use test_utils::project_dir; 8use test_utils::project_dir;
8 9
9use crate::{fuzz, tokenize, SourceFile, SyntaxError, TextRange, TextSize, Token}; 10use crate::{fuzz, tokenize, SourceFile, SyntaxError, TextRange, TextSize, Token};
@@ -217,7 +218,7 @@ where
217 for (path, input_code) in collect_rust_files(test_data_dir, paths) { 218 for (path, input_code) in collect_rust_files(test_data_dir, paths) {
218 let actual = f(&input_code, &path); 219 let actual = f(&input_code, &path);
219 let path = path.with_extension(outfile_extension); 220 let path = path.with_extension(outfile_extension);
220 expect::ExpectFile::new(path).assert_eq(&actual) 221 expect_file![path].assert_eq(&actual)
221 } 222 }
222} 223}
223 224