aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/tests/test.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-25 11:42:40 +0100
committerAleksey Kladov <[email protected]>2018-08-25 11:42:40 +0100
commit19d933ba38e843833b9fce4776ee9b6b9f779e4e (patch)
treea4e281d3ca8ef8d3b8b24f7ea5f1cad1a24ec369 /crates/libeditor/tests/test.rs
parent838820ad986e04dffa43fc2662a58da27d97db06 (diff)
join lines works for lambdas
Diffstat (limited to 'crates/libeditor/tests/test.rs')
-rw-r--r--crates/libeditor/tests/test.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/libeditor/tests/test.rs b/crates/libeditor/tests/test.rs
index ab325c520..7e5e75ec2 100644
--- a/crates/libeditor/tests/test.rs
+++ b/crates/libeditor/tests/test.rs
@@ -199,6 +199,17 @@ fn foo() {
199 <|>foo(1) 199 <|>foo(1)
200} 200}
201"); 201");
202 do_check(r"
203pub fn reparse(&self, edit: &AtomEdit) -> File {
204 <|>self.incremental_reparse(edit).unwrap_or_else(|| {
205 self.full_reparse(edit)
206 })
207}
208", r"
209pub fn reparse(&self, edit: &AtomEdit) -> File {
210 <|>self.incremental_reparse(edit).unwrap_or_else(|| self.full_reparse(edit))
211}
212");
202} 213}
203 214
204#[test] 215#[test]