diff options
author | Kirill Bulatov <[email protected]> | 2020-09-09 23:58:29 +0100 |
---|---|---|
committer | Kirill Bulatov <[email protected]> | 2020-09-09 23:58:29 +0100 |
commit | 492e3c40f666f53d9e6b8329cadc57ff36e38ba9 (patch) | |
tree | 6d6caaa03f3fb1c6b318c2689ae37944ef782ad2 /crates/ide/src | |
parent | 9863798480aa9642e31bfd41ee899d2e7329b5e5 (diff) |
One more test
Diffstat (limited to 'crates/ide/src')
-rw-r--r-- | crates/ide/src/completion/complete_mod.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/ide/src/completion/complete_mod.rs b/crates/ide/src/completion/complete_mod.rs index 2ea0d5034..7dbf4aee4 100644 --- a/crates/ide/src/completion/complete_mod.rs +++ b/crates/ide/src/completion/complete_mod.rs | |||
@@ -181,6 +181,21 @@ mod tests { | |||
181 | } | 181 | } |
182 | 182 | ||
183 | #[test] | 183 | #[test] |
184 | fn no_module_completion_with_module_body() { | ||
185 | check( | ||
186 | r#" | ||
187 | //- /lib.rs | ||
188 | mod <|> { | ||
189 | |||
190 | } | ||
191 | //- /foo.rs | ||
192 | fn foo() {} | ||
193 | "#, | ||
194 | expect![[r#""#]], | ||
195 | ); | ||
196 | } | ||
197 | |||
198 | #[test] | ||
184 | fn main_module_completion() { | 199 | fn main_module_completion() { |
185 | check( | 200 | check( |
186 | r#" | 201 | r#" |