From 28f6eedba59d3a5dd43fe6fbde3d19d54d0e2f9d Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 2 Jan 2019 20:12:38 +0300 Subject: simplify runnables --- crates/ra_analysis/tests/tests.rs | 50 --------------------------------------- 1 file changed, 50 deletions(-) (limited to 'crates/ra_analysis/tests') diff --git a/crates/ra_analysis/tests/tests.rs b/crates/ra_analysis/tests/tests.rs index 845fff3c6..3045c2e78 100644 --- a/crates/ra_analysis/tests/tests.rs +++ b/crates/ra_analysis/tests/tests.rs @@ -131,56 +131,6 @@ fn test_resolve_parent_module_for_inline() { ); } -#[test] -fn test_path_one_layer() { - let (analysis, pos) = analysis_and_position( - " - //- /lib.rs - mod foo; - //- /foo/mod.rs - mod bla; - //- /foo/bla.rs - <|> //empty - ", - ); - let symbols = analysis.module_path(pos).unwrap().unwrap(); - assert_eq!("foo::bla", &symbols); -} - -#[test] -fn test_path_two_layer() { - let (analysis, pos) = analysis_and_position( - " - //- /lib.rs - mod foo; - //- /foo/mod.rs - mod bla; - //- /foo/bla/mod.rs - mod more; - //- /foo/bla/more.rs - <|> //empty - ", - ); - let symbols = analysis.module_path(pos).unwrap().unwrap(); - assert_eq!("foo::bla::more", &symbols); -} - -#[test] -fn test_path_in_file_mod() { - let (analysis, pos) = analysis_and_position( - " - //- /lib.rs - mod foo; - //- /foo.rs - mod bar { - <|> //empty - } - ", - ); - let symbols = analysis.module_path(pos).unwrap().unwrap(); - assert_eq!("foo::bar", &symbols); -} - #[test] fn test_resolve_crate_root() { let mock = MockAnalysis::with_files( -- cgit v1.2.3