aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide_api_light/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_ide_api_light/src')
-rw-r--r--crates/ra_ide_api_light/src/join_lines.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/crates/ra_ide_api_light/src/join_lines.rs b/crates/ra_ide_api_light/src/join_lines.rs
index 970afd327..949ee1544 100644
--- a/crates/ra_ide_api_light/src/join_lines.rs
+++ b/crates/ra_ide_api_light/src/join_lines.rs
@@ -208,6 +208,29 @@ fn foo() {
208 } 208 }
209 209
210 #[test] 210 #[test]
211 #[ignore] // FIXME: https://github.com/rust-analyzer/rust-analyzer/issues/868
212 fn join_lines_adds_comma_for_block_in_match_arm() {
213 check_join_lines(
214 r"
215fn foo(e: Result<U, V>) {
216 match e {
217 Ok(u) => <|>{
218 u.foo()
219 }
220 Err(v) => v,
221 }
222}",
223 r"
224fn foo(e: Result<U, V>) {
225 match e {
226 Ok(u) => <|>u.foo(),
227 Err(v) => v,
228 }
229}",
230 );
231 }
232
233 #[test]
211 fn test_join_lines_use_items_left() { 234 fn test_join_lines_use_items_left() {
212 // No space after the '{' 235 // No space after the '{'
213 check_join_lines( 236 check_join_lines(