diff options
author | Aleksey Kladov <[email protected]> | 2018-08-27 20:03:19 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-27 20:03:19 +0100 |
commit | 57518153147ad53639f16cc940d219dc582c550a (patch) | |
tree | 5c1708cf8ea4e2344c8dfc96af82343be0b0271c /crates/libeditor/tests/test.rs | |
parent | b79c8b6d8a3b38c94de992a54ffb9055c1ad6f31 (diff) |
Add runnables
Diffstat (limited to 'crates/libeditor/tests/test.rs')
-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 { |