diff options
author | Aleksey Kladov <[email protected]> | 2018-08-25 11:42:40 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-08-25 11:42:40 +0100 |
commit | 19d933ba38e843833b9fce4776ee9b6b9f779e4e (patch) | |
tree | a4e281d3ca8ef8d3b8b24f7ea5f1cad1a24ec369 /crates/libeditor/tests/test.rs | |
parent | 838820ad986e04dffa43fc2662a58da27d97db06 (diff) |
join lines works for lambdas
Diffstat (limited to 'crates/libeditor/tests/test.rs')
-rw-r--r-- | crates/libeditor/tests/test.rs | 11 |
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" | ||
203 | pub fn reparse(&self, edit: &AtomEdit) -> File { | ||
204 | <|>self.incremental_reparse(edit).unwrap_or_else(|| { | ||
205 | self.full_reparse(edit) | ||
206 | }) | ||
207 | } | ||
208 | ", r" | ||
209 | pub 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] |