aboutsummaryrefslogtreecommitdiff
path: root/crates/libeditor/tests/test.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-08-16 11:11:20 +0100
committerAleksey Kladov <[email protected]>2018-08-16 11:11:20 +0100
commita5515d9d6f215da4351b482d839aab5212fa0e6f (patch)
treea0557e07f57fad65ad32b80010cce08b5559f9e5 /crates/libeditor/tests/test.rs
parent7094291573dc819e3115950ec3b2316bd5e9ea33 (diff)
Add derive handles cursor
Diffstat (limited to 'crates/libeditor/tests/test.rs')
-rw-r--r--crates/libeditor/tests/test.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/libeditor/tests/test.rs b/crates/libeditor/tests/test.rs
index d5df9d0cc..97919d347 100644
--- a/crates/libeditor/tests/test.rs
+++ b/crates/libeditor/tests/test.rs
@@ -116,7 +116,12 @@ fn test_add_derive() {
116 "struct Foo { a: i32, <|>}", 116 "struct Foo { a: i32, <|>}",
117 "#[derive(<|>)]\nstruct Foo { a: i32, }", 117 "#[derive(<|>)]\nstruct Foo { a: i32, }",
118 |file, off| add_derive(file, off).map(|f| f()), 118 |file, off| add_derive(file, off).map(|f| f()),
119 ) 119 );
120 check_action(
121 "#[derive(Clone)]\nstruct Foo { a: i32<|>, }",
122 "#[derive(Clone<|>)]\nstruct Foo { a: i32, }",
123 |file, off| add_derive(file, off).map(|f| f()),
124 );
120} 125}
121 126
122#[test] 127#[test]