diff --git a/idea/tests/org/jetbrains/kotlin/idea/console/KotlinReplTest.kt b/idea/tests/org/jetbrains/kotlin/idea/console/KotlinReplTest.kt index f63a17e564a..25696d239a9 100644 --- a/idea/tests/org/jetbrains/kotlin/idea/console/KotlinReplTest.kt +++ b/idea/tests/org/jetbrains/kotlin/idea/console/KotlinReplTest.kt @@ -91,6 +91,17 @@ public class KotlinReplTest : PlatformTestCase() { @Test fun testPrintlnText() = "Hello, console world!" let { testSimpleCommand("println(\"$it\")", it) } @Test fun testDivisionByZeroException() = testSimpleCommand("1 / 0", "java.lang.ArithmeticException: / by zero") + @Test fun testMultilineSupport() { + val printText = "Print in multiline!" + + sendCommand("fun f() {\n" + + " println(\"$printText\")\n" + + "}\n") + sendCommand("f()") + + waitForExpectedOutput(printText) + } + @Test fun testReadLineSingle() { val readLineText = "ReadMe!"