From 5052bf988918f23801036b2cbc3d1505b5321ee5 Mon Sep 17 00:00:00 2001 From: Erlend Tobiassen Date: Sat, 26 Jan 2019 16:59:53 +0100 Subject: Update test to use correct paths --- crates/ra_ide_api/tests/test/main.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'crates/ra_ide_api/tests') 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 @@ +use insta::assert_debug_snapshot_matches; use ra_ide_api::{ - AnalysisChange, - CrateGraph, FileId, mock_analysis::{MockAnalysis, single_file, single_file_with_position}, Query, + mock_analysis::{single_file, single_file_with_position, MockAnalysis}, + AnalysisChange, CrateGraph, FileId, Query, }; use ra_syntax::TextRange; -use insta::assert_debug_snapshot_matches; #[test] fn test_unresolved_module_diagnostic() { @@ -26,12 +26,12 @@ fn test_resolve_crate_root() { " //- /bar.rs mod foo; - //- /bar/foo.rs - // emtpy <|> + //- /foo.rs + // empty <|> ", ); let root_file = mock.id_of("/bar.rs"); - let mod_file = mock.id_of("/bar/foo.rs"); + let mod_file = mock.id_of("/foo.rs"); let mut host = mock.analysis_host(); assert!(host.analysis().crate_for(mod_file).unwrap().is_empty()); -- cgit v1.2.3