diff options
Diffstat (limited to 'crates/ra_syntax/src')
-rw-r--r-- | crates/ra_syntax/src/tests.rs | 3 |
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 | ||
7 | use expect::expect_file; | ||
7 | use test_utils::project_dir; | 8 | use test_utils::project_dir; |
8 | 9 | ||
9 | use crate::{fuzz, tokenize, SourceFile, SyntaxError, TextRange, TextSize, Token}; | 10 | use 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 | ||