From 492e3c40f666f53d9e6b8329cadc57ff36e38ba9 Mon Sep 17 00:00:00 2001 From: Kirill Bulatov Date: Thu, 10 Sep 2020 01:58:29 +0300 Subject: One more test --- crates/ide/src/completion/complete_mod.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'crates/ide/src/completion') 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 @@ -180,6 +180,21 @@ mod tests { ); } + #[test] + fn no_module_completion_with_module_body() { + check( + r#" + //- /lib.rs + mod <|> { + + } + //- /foo.rs + fn foo() {} + "#, + expect![[r#""#]], + ); + } + #[test] fn main_module_completion() { check( -- cgit v1.2.3