From 4c121bfa2f2a7a06f01143e3203c650156e2fb4e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 26 Aug 2018 10:43:03 +0300 Subject: extend selection to comments --- crates/libeditor/tests/test.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'crates/libeditor/tests/test.rs') diff --git a/crates/libeditor/tests/test.rs b/crates/libeditor/tests/test.rs index 9d59f4cdf..20de2f240 100644 --- a/crates/libeditor/tests/test.rs +++ b/crates/libeditor/tests/test.rs @@ -40,6 +40,18 @@ impl S { }"#, &["fn foo() {\n\n }"] ); + do_check( + r#" +fn bar(){} + +// fn foo() { +// 1 + <|>1 +// } + +// fn foo(){} +"#, + &["// 1 + 1", "// fn foo() {\n// 1 + 1\n// }"] + ); } #[test] -- cgit v1.2.3