aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/tests/test.rs
diff options
context:
space:
mode:
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]