Added StringTrimLowering to pipeline (#4647)

This commit is contained in:
LepilkinaElena
2021-01-21 19:53:08 +03:00
committed by Nikolay Krasko
parent 73297a4ef3
commit 71f44dce0f
4 changed files with 41 additions and 0 deletions
@@ -0,0 +1,30 @@
/*
* Copyright 2010-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
package codegen.stringTrim.stringTrim
import kotlin.test.*
// TODO: check IR
fun constantIndent(): String {
return """
Hello,
World
""".trimIndent()
}
fun constantMargin(): String {
return """
|Hello,
|World
""".trimMargin()
}
@Test
fun runTest() {
assertTrue(constantIndent() === constantIndent())
assertTrue(constantMargin() === constantMargin())
}