From 405cfa439dd2924162b3c31fc00ecd273afd836a Mon Sep 17 00:00:00 2001 From: "Pavel V. Talanov" Date: Tue, 17 Nov 2015 21:44:13 +0300 Subject: [PATCH] Repl test: behave closer to real repl --- .../org/jetbrains/kotlin/repl/AbstractReplInterpreterTest.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/tests/org/jetbrains/kotlin/repl/AbstractReplInterpreterTest.kt b/compiler/tests/org/jetbrains/kotlin/repl/AbstractReplInterpreterTest.kt index 4b95047c9d6..b8bad9df60c 100644 --- a/compiler/tests/org/jetbrains/kotlin/repl/AbstractReplInterpreterTest.kt +++ b/compiler/tests/org/jetbrains/kotlin/repl/AbstractReplInterpreterTest.kt @@ -92,7 +92,7 @@ public abstract class AbstractReplInterpreterTest : UsefulTestCase() { } val actual = when (lineResult.getType()) { - ReplInterpreter.LineResultType.SUCCESS -> lineResult.getValue()?.toString() ?: "" + ReplInterpreter.LineResultType.SUCCESS -> if (!lineResult.isUnit) "${lineResult.value}" else "" ReplInterpreter.LineResultType.RUNTIME_ERROR, ReplInterpreter.LineResultType.COMPILE_ERROR -> lineResult.getErrorText() ReplInterpreter.LineResultType.INCOMPLETE -> INCOMPLETE_LINE_MESSAGE