From 2dc67c85b94a8e858706568c4116b3123348941b Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 9 Feb 2021 17:48:25 +0300 Subject: Cleanup test --- crates/ide/src/join_lines.rs | 41 +++++++++++++++++++++-------------------- 1 file changed, 21 insertions(+), 20 deletions(-) (limited to 'crates/ide/src') diff --git a/crates/ide/src/join_lines.rs b/crates/ide/src/join_lines.rs index 631bde0f1..e3f3985d1 100644 --- a/crates/ide/src/join_lines.rs +++ b/crates/ide/src/join_lines.rs @@ -270,27 +270,28 @@ fn foo() { #[test] fn test_join_lines_diverging_block() { - let before = r" - fn foo() { - loop { - match x { - 92 => $0{ - continue; - } - } - } - } - "; - let after = r" - fn foo() { - loop { - match x { - 92 => $0continue, - } - } + check_join_lines( + r" +fn foo() { + loop { + match x { + 92 => $0{ + continue; } - "; - check_join_lines(before, after); + } + } +} + ", + r" +fn foo() { + loop { + match x { + 92 => $0continue, + } + } +} + ", + ); } #[test] -- cgit v1.2.3