aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/tests/test.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-26 08:43:03 +0100
committerAleksey Kladov <[email protected]>2018-08-26 08:43:03 +0100
commit4c121bfa2f2a7a06f01143e3203c650156e2fb4e (patch)
tree4b28671d904079928e005fa04dfbe14c36933e1b /crates/libeditor/tests/test.rs
parenta450142aca947b9364e498897f522f854f19781d (diff)
extend selection to comments
Diffstat (limited to 'crates/libeditor/tests/test.rs')
-rw-r--r--crates/libeditor/tests/test.rs12
1 files changed, 12 insertions, 0 deletions
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 {
40}"#, 40}"#,
41 &["fn foo() {\n\n }"] 41 &["fn foo() {\n\n }"]
42 ); 42 );
43 do_check(
44 r#"
45fn bar(){}
46
47// fn foo() {
48// 1 + <|>1
49// }
50
51// fn foo(){}
52"#,
53 &["// 1 + 1", "// fn foo() {\n// 1 + 1\n// }"]
54 );
43} 55}
44 56
45#[test] 57#[test]