From 1f1953cc38507e8c68f0ec40b671cef754e21cf3 Mon Sep 17 00:00:00 2001 From: Nikolay Krasko Date: Thu, 6 Sep 2018 13:21:54 +0300 Subject: [PATCH] Minor: use common trimIndent() in type hints tests --- .../idea/parameterInfo/InlayTypeHintsTest.kt | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/idea/tests/org/jetbrains/kotlin/idea/parameterInfo/InlayTypeHintsTest.kt b/idea/tests/org/jetbrains/kotlin/idea/parameterInfo/InlayTypeHintsTest.kt index e89296322cc..d400704b12b 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/parameterInfo/InlayTypeHintsTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/parameterInfo/InlayTypeHintsTest.kt @@ -21,8 +21,8 @@ class InlayTypeHintsTest : KotlinLightCodeInsightFixtureTestCase() { check(text) } - private fun checkLocalVariable(text: String) = check(text, HintType.LOCAL_VARIABLE_HINT) - private fun checkPropertyHint(text: String) = check(text, HintType.PROPERTY_HINT) + private fun checkLocalVariable(text: String) = check(text.trimIndent(), HintType.LOCAL_VARIABLE_HINT) + private fun checkPropertyHint(text: String) = check(text.trimIndent(), HintType.PROPERTY_HINT) private fun checkFunctionHint(text: String) = check(text, HintType.FUNCTION_HINT) fun testLocalVariableType() { @@ -94,7 +94,7 @@ class InlayTypeHintsTest : KotlinLightCodeInsightFixtureTestCase() { val x: Int = 0 } } - """.trimIndent() + """ ) } @@ -103,7 +103,7 @@ class InlayTypeHintsTest : KotlinLightCodeInsightFixtureTestCase() { """ enum class E { ENTRY } val test = E.ENTRY - """.trimIndent() + """ ) } @@ -118,7 +118,7 @@ class InlayTypeHintsTest : KotlinLightCodeInsightFixtureTestCase() { } val test = E.test - """.trimIndent() + """ ) } @@ -132,7 +132,7 @@ class InlayTypeHintsTest : KotlinLightCodeInsightFixtureTestCase() { } val test = E.test() - """.trimIndent() + """ ) } @@ -142,7 +142,7 @@ class InlayTypeHintsTest : KotlinLightCodeInsightFixtureTestCase() { import E.ENTRY enum class E { ENTRY } val test = ENTRY - """.trimIndent() + """ ) } @@ -178,7 +178,7 @@ class InlayTypeHintsTest : KotlinLightCodeInsightFixtureTestCase() { fun x() :Triple { return Triple("A", "B", "C") } - """.trimIndent() + """ ) } @@ -209,7 +209,7 @@ class InlayTypeHintsTest : KotlinLightCodeInsightFixtureTestCase() { } } val inA = A.provideInA() - """.trimIndent() + """ ) } @@ -223,7 +223,7 @@ class InlayTypeHintsTest : KotlinLightCodeInsightFixtureTestCase() { } } val inA = A.provideInA() - """.trimIndent() + """ ) } }