diff options
Diffstat (limited to 'crates/libeditor/tests')
-rw-r--r-- | crates/libeditor/tests/test.rs | 7 |
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] |