Paste inside indented .trimIndent() raw string: respect indentation (KT-31810)

#KT-31810 Fixed
This commit is contained in:
Toshiaki Kameyama
2019-07-29 14:06:32 +09:00
committed by Nikolay Krasko
parent d3b826c71d
commit 147f805c56
8 changed files with 69 additions and 7 deletions
@@ -0,0 +1,9 @@
fun test() = doTest("""
def foo(a)
a ? 0 : 1
end
""".trimIndent())
fun doTest(rubyCode: String) {
// some code here
}
@@ -0,0 +1,7 @@
fun test() = doTest("""
<caret>
""".trimIndent())
fun doTest(rubyCode: String) {
// some code here
}
@@ -0,0 +1,3 @@
def foo(a)
a ? 0 : 1
end
@@ -0,0 +1,9 @@
fun test() = doTest("""
def foo(a)
a ? 0 : 1
end
""".trimIndent())
fun doTest(rubyCode: String) {
// some code here
}
@@ -0,0 +1,7 @@
fun test() = doTest("""
<caret>
""".trimIndent())
fun doTest(rubyCode: String) {
// some code here
}
@@ -0,0 +1,3 @@
def foo(a)
a ? 0 : 1
end