diff options
Diffstat (limited to 'crates/libeditor/tests')
-rw-r--r-- | crates/libeditor/tests/test.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crates/libeditor/tests/test.rs b/crates/libeditor/tests/test.rs index d051980b0..d8c24610d 100644 --- a/crates/libeditor/tests/test.rs +++ b/crates/libeditor/tests/test.rs | |||
@@ -286,6 +286,14 @@ fn quux() { | |||
286 | } | 286 | } |
287 | ", r#"[CompletionItem { name: "b" }, | 287 | ", r#"[CompletionItem { name: "b" }, |
288 | CompletionItem { name: "a" }]"#); | 288 | CompletionItem { name: "a" }]"#); |
289 | |||
290 | do_check(r" | ||
291 | fn quux() { | ||
292 | for x in &[1, 2, 3] { | ||
293 | <|> | ||
294 | } | ||
295 | } | ||
296 | ", r#"[CompletionItem { name: "x" }]"#); | ||
289 | } | 297 | } |
290 | 298 | ||
291 | fn file(text: &str) -> File { | 299 | fn file(text: &str) -> File { |