From 1a7f1dff10ae8594c6af0b181f6a0fc9d05c1173 Mon Sep 17 00:00:00 2001 From: Natalia Selezneva Date: Thu, 10 Oct 2019 12:50:11 +0300 Subject: [PATCH] Simplify scratch test without runtime to avoid exception form resolver Create an issue that caused failure of the original test ^KT-34233 --- .../testData/scratch/simpleNoRuntime.comp.after | 2 +- idea/scripting-support/testData/scratch/simpleNoRuntime.kts | 2 +- .../testData/scratch/simpleNoRuntime.repl.after | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/idea/scripting-support/testData/scratch/simpleNoRuntime.comp.after b/idea/scripting-support/testData/scratch/simpleNoRuntime.comp.after index d55799a903a..1fe80246f3f 100644 --- a/idea/scripting-support/testData/scratch/simpleNoRuntime.comp.after +++ b/idea/scripting-support/testData/scratch/simpleNoRuntime.comp.after @@ -1,4 +1,4 @@ // REPL_MODE: false // NO_MODULE -arrayListOf(1, 2).size // RESULT: 2 \ No newline at end of file +run { 1 + 1 } // RESULT: 2 \ No newline at end of file diff --git a/idea/scripting-support/testData/scratch/simpleNoRuntime.kts b/idea/scripting-support/testData/scratch/simpleNoRuntime.kts index 3a8b2ce8186..493a9c38901 100644 --- a/idea/scripting-support/testData/scratch/simpleNoRuntime.kts +++ b/idea/scripting-support/testData/scratch/simpleNoRuntime.kts @@ -1,4 +1,4 @@ // REPL_MODE: ~REPL_MODE~ // NO_MODULE -arrayListOf(1, 2).size \ No newline at end of file +run { 1 + 1 } \ No newline at end of file diff --git a/idea/scripting-support/testData/scratch/simpleNoRuntime.repl.after b/idea/scripting-support/testData/scratch/simpleNoRuntime.repl.after index 487de8bc092..81146b71594 100644 --- a/idea/scripting-support/testData/scratch/simpleNoRuntime.repl.after +++ b/idea/scripting-support/testData/scratch/simpleNoRuntime.repl.after @@ -1,4 +1,4 @@ // REPL_MODE: true // NO_MODULE -arrayListOf(1, 2).size // RESULT: res0: kotlin.Int = 2 \ No newline at end of file +run { 1 + 1 } // RESULT: res0: kotlin.Int = 2 \ No newline at end of file