diff options
Diffstat (limited to 'crates/ra_ide_api/tests/test')
-rw-r--r-- | crates/ra_ide_api/tests/test/main.rs | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/crates/ra_ide_api/tests/test/main.rs b/crates/ra_ide_api/tests/test/main.rs index a83fbe07b..ff1a0e46b 100644 --- a/crates/ra_ide_api/tests/test/main.rs +++ b/crates/ra_ide_api/tests/test/main.rs | |||
@@ -4,7 +4,7 @@ use ra_ide_api::{ | |||
4 | AnalysisChange, CrateGraph, Edition::Edition2018, Query, NavigationTarget, | 4 | AnalysisChange, CrateGraph, Edition::Edition2018, Query, NavigationTarget, |
5 | ReferenceSearchResult, | 5 | ReferenceSearchResult, |
6 | }; | 6 | }; |
7 | use ra_syntax::{TextRange, SmolStr}; | 7 | use ra_syntax::SmolStr; |
8 | 8 | ||
9 | #[test] | 9 | #[test] |
10 | fn test_unresolved_module_diagnostic() { | 10 | fn test_unresolved_module_diagnostic() { |
@@ -138,20 +138,3 @@ mod foo { | |||
138 | assert_eq!(s.name(), "FooInner"); | 138 | assert_eq!(s.name(), "FooInner"); |
139 | assert_eq!(s.container_name(), Some(&SmolStr::new("foo"))); | 139 | assert_eq!(s.container_name(), Some(&SmolStr::new("foo"))); |
140 | } | 140 | } |
141 | |||
142 | #[test] | ||
143 | #[ignore] | ||
144 | fn world_symbols_include_stuff_from_macros() { | ||
145 | let (analysis, _) = single_file( | ||
146 | " | ||
147 | salsa::query_group! { | ||
148 | pub trait HirDatabase: SyntaxDatabase {} | ||
149 | } | ||
150 | ", | ||
151 | ); | ||
152 | |||
153 | let mut symbols = analysis.symbol_search(Query::new("Hir".into())).unwrap(); | ||
154 | let s = symbols.pop().unwrap(); | ||
155 | assert_eq!(s.name(), "HirDatabase"); | ||
156 | assert_eq!(s.full_range(), TextRange::from_to(33.into(), 44.into())); | ||
157 | } | ||