aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/completion
diff options
context:
space:
mode:
authorKirill Bulatov <[email protected]>2020-09-11 12:16:15 +0100
committerKirill Bulatov <[email protected]>2020-09-11 12:16:15 +0100
commitca698a0b8c78e5ba7738fc0f0f6f77718e70a83e (patch)
treeb49f81d0026ac7f09bec6ddbab5ebae225c5690c /crates/ide/src/completion
parent492e3c40f666f53d9e6b8329cadc57ff36e38ba9 (diff)
Adjust the test comment
Diffstat (limited to 'crates/ide/src/completion')
-rw-r--r--crates/ide/src/completion/complete_mod.rs25
1 files changed, 16 insertions, 9 deletions
diff --git a/crates/ide/src/completion/complete_mod.rs b/crates/ide/src/completion/complete_mod.rs
index 7dbf4aee4..3cfc2e131 100644
--- a/crates/ide/src/completion/complete_mod.rs
+++ b/crates/ide/src/completion/complete_mod.rs
@@ -277,18 +277,25 @@ mod tests {
277 ); 277 );
278 } 278 }
279 279
280 // FIXME binart modules are not picked up in tests 280 // FIXME binary modules are not supported in tests properly
281 // Binary modules are a bit special, they allow importing the modules from `/src/bin`
282 // and that's why are good to test two things:
283 // * no cycles are allowed in mod declarations
284 // * no modules from the parent directory are proposed
285 // Unfortunately, binary modules support is in cargo not rustc,
286 // hence the test does not work now
287 //
281 // #[test] 288 // #[test]
282 // fn regular_bin_module_completion() { 289 // fn regular_bin_module_completion() {
283 // check( 290 // check(
284 // r#" 291 // r#"
285 // //- /src/main.rs 292 // //- /src/bin.rs
286 // fn main() {} 293 // fn main() {}
287 // //- /src/main/foo.rs 294 // //- /src/bin/foo.rs
288 // mod <|> 295 // mod <|>
289 // //- /src/main/bar.rs 296 // //- /src/bin/bar.rs
290 // fn bar() {} 297 // fn bar() {}
291 // //- /src/main/bar/bar_ignored.rs 298 // //- /src/bin/bar/bar_ignored.rs
292 // fn bar_ignored() {} 299 // fn bar_ignored() {}
293 // "#, 300 // "#,
294 // expect![[r#" 301 // expect![[r#"
@@ -301,14 +308,14 @@ mod tests {
301 fn already_declared_bin_module_completion_omitted() { 308 fn already_declared_bin_module_completion_omitted() {
302 check( 309 check(
303 r#" 310 r#"
304 //- /src/main.rs 311 //- /src/bin.rs
305 fn main() {} 312 fn main() {}
306 //- /src/main/foo.rs 313 //- /src/bin/foo.rs
307 mod <|> 314 mod <|>
308 //- /src/main/bar.rs 315 //- /src/bin/bar.rs
309 mod foo; 316 mod foo;
310 fn bar() {} 317 fn bar() {}
311 //- /src/main/bar/bar_ignored.rs 318 //- /src/bin/bar/bar_ignored.rs
312 fn bar_ignored() {} 319 fn bar_ignored() {}
313 "#, 320 "#,
314 expect![[r#""#]], 321 expect![[r#""#]],