diff options
author | Aleksey Kladov <[email protected]> | 2019-02-21 11:06:21 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2019-02-21 11:06:21 +0000 |
commit | 2fa2805887e734647aabebc1f533ec76c48f538a (patch) | |
tree | 402ec46597fd25892fb96bb959d83fbf35fff271 /crates | |
parent | d77b5857c2420666e84dcd433f254e000e2843aa (diff) |
add failing test
Diffstat (limited to 'crates')
-rw-r--r-- | crates/ra_ide_api_light/src/join_lines.rs | 23 |
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" | ||
215 | fn foo(e: Result<U, V>) { | ||
216 | match e { | ||
217 | Ok(u) => <|>{ | ||
218 | u.foo() | ||
219 | } | ||
220 | Err(v) => v, | ||
221 | } | ||
222 | }", | ||
223 | r" | ||
224 | fn 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( |