diff options
author | Aleksey Kladov <[email protected]> | 2019-02-19 16:51:48 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-19 17:06:53 +0000 |
commit | 9738fb48a68bee087e441f09edfc56bdbd827f35 (patch) | |
tree | c9d87fbdfce3b14c6b75398938790d7966913f34 /crates/ra_ide_api/tests/test | |
parent | 4142a3adc6b86834540c09babadb2b872fdd3424 (diff) |
remove ignored macro tests
we need to significantly reengineer macros, so the tests as they exist
are useless
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 | } | ||