From c6795fb83a850dde6ac0b08decf108c0c3aa452a Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 24 Jun 2020 11:29:43 +0200 Subject: More consistent usage of fixtures --- crates/ra_ide/src/typing/on_enter.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/ra_ide/src/typing') diff --git a/crates/ra_ide/src/typing/on_enter.rs b/crates/ra_ide/src/typing/on_enter.rs index 787e85ffd..50adae8bb 100644 --- a/crates/ra_ide/src/typing/on_enter.rs +++ b/crates/ra_ide/src/typing/on_enter.rs @@ -78,6 +78,7 @@ mod tests { use test_utils::assert_eq_text; use crate::mock_analysis::single_file_with_position; + use stdx::trim_indent; fn apply_on_enter(before: &str) -> Option { let (analysis, position) = single_file_with_position(&before); @@ -89,6 +90,7 @@ mod tests { } fn do_check(ra_fixture_before: &str, ra_fixture_after: &str) { + let ra_fixture_after = &trim_indent(ra_fixture_after); let actual = apply_on_enter(ra_fixture_before).unwrap(); assert_eq_text!(ra_fixture_after, &actual); } -- cgit v1.2.3