aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErlend Tobiassen <[email protected]>2019-01-26 15:59:53 +0000
committerErlend Tobiassen <[email protected]>2019-01-27 14:19:41 +0000
commit5052bf988918f23801036b2cbc3d1505b5321ee5 (patch)
treeb53146ec11e47a4d217e59837807c915cb8eba75
parentc5e6db16b1def5d481358489a3c6d9a6fd5cbdf4 (diff)
Update test to use correct paths
-rw-r--r--crates/ra_ide_api/tests/test/main.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/crates/ra_ide_api/tests/test/main.rs b/crates/ra_ide_api/tests/test/main.rs
index 756075190..c2cb38f7e 100644
--- a/crates/ra_ide_api/tests/test/main.rs
+++ b/crates/ra_ide_api/tests/test/main.rs
@@ -1,9 +1,9 @@
1use insta::assert_debug_snapshot_matches;
1use ra_ide_api::{ 2use ra_ide_api::{
2 AnalysisChange, 3 mock_analysis::{single_file, single_file_with_position, MockAnalysis},
3 CrateGraph, FileId, mock_analysis::{MockAnalysis, single_file, single_file_with_position}, Query, 4 AnalysisChange, CrateGraph, FileId, Query,
4}; 5};
5use ra_syntax::TextRange; 6use ra_syntax::TextRange;
6use insta::assert_debug_snapshot_matches;
7 7
8#[test] 8#[test]
9fn test_unresolved_module_diagnostic() { 9fn test_unresolved_module_diagnostic() {
@@ -26,12 +26,12 @@ fn test_resolve_crate_root() {
26 " 26 "
27 //- /bar.rs 27 //- /bar.rs
28 mod foo; 28 mod foo;
29 //- /bar/foo.rs 29 //- /foo.rs
30 // emtpy <|> 30 // empty <|>
31 ", 31 ",
32 ); 32 );
33 let root_file = mock.id_of("/bar.rs"); 33 let root_file = mock.id_of("/bar.rs");
34 let mod_file = mock.id_of("/bar/foo.rs"); 34 let mod_file = mock.id_of("/foo.rs");
35 let mut host = mock.analysis_host(); 35 let mut host = mock.analysis_host();
36 assert!(host.analysis().crate_for(mod_file).unwrap().is_empty()); 36 assert!(host.analysis().crate_for(mod_file).unwrap().is_empty());
37 37