diff options
Diffstat (limited to 'crates/ra_ide/src/completion/complete_pattern.rs')
-rw-r--r-- | crates/ra_ide/src/completion/complete_pattern.rs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/crates/ra_ide/src/completion/complete_pattern.rs b/crates/ra_ide/src/completion/complete_pattern.rs index 6a1a66ef1..cb84bb934 100644 --- a/crates/ra_ide/src/completion/complete_pattern.rs +++ b/crates/ra_ide/src/completion/complete_pattern.rs | |||
@@ -89,7 +89,6 @@ mod tests { | |||
89 | 89 | ||
90 | #[test] | 90 | #[test] |
91 | fn completes_in_simple_macro_call() { | 91 | fn completes_in_simple_macro_call() { |
92 | // FIXME: doesn't work yet because of missing error recovery in macro expansion | ||
93 | let completions = complete( | 92 | let completions = complete( |
94 | r" | 93 | r" |
95 | macro_rules! m { ($e:expr) => { $e } } | 94 | macro_rules! m { ($e:expr) => { $e } } |
@@ -102,6 +101,16 @@ mod tests { | |||
102 | } | 101 | } |
103 | ", | 102 | ", |
104 | ); | 103 | ); |
105 | assert_debug_snapshot!(completions, @r###"[]"###); | 104 | assert_debug_snapshot!(completions, @r###" |
105 | [ | ||
106 | CompletionItem { | ||
107 | label: "E", | ||
108 | source_range: [151; 151), | ||
109 | delete: [151; 151), | ||
110 | insert: "E", | ||
111 | kind: Enum, | ||
112 | }, | ||
113 | ] | ||
114 | "###); | ||
106 | } | 115 | } |
107 | } | 116 | } |