From 55ffd797a4be0c4a08fcb3909a50903f5a72cc19 Mon Sep 17 00:00:00 2001 From: Stepan Koltsov Date: Wed, 13 Jun 2012 22:32:36 +0400 Subject: [PATCH] test imports work in the following lines of REPL --- compiler/testData/repl/imports.repl | 6 ++++++ .../tests/org/jetbrains/jet/repl/ReplInterpreterTest.java | 5 +++++ 2 files changed, 11 insertions(+) create mode 100644 compiler/testData/repl/imports.repl diff --git a/compiler/testData/repl/imports.repl b/compiler/testData/repl/imports.repl new file mode 100644 index 00000000000..a36b700c757 --- /dev/null +++ b/compiler/testData/repl/imports.repl @@ -0,0 +1,6 @@ +>>> import java.io.ByteArrayOutputStream +null +>>> val s = ByteArrayOutputStream() +null +>>> s.getClass()!!.getName() +java.io.ByteArrayOutputStream diff --git a/compiler/tests/org/jetbrains/jet/repl/ReplInterpreterTest.java b/compiler/tests/org/jetbrains/jet/repl/ReplInterpreterTest.java index f6db5a44202..11364cab85b 100644 --- a/compiler/tests/org/jetbrains/jet/repl/ReplInterpreterTest.java +++ b/compiler/tests/org/jetbrains/jet/repl/ReplInterpreterTest.java @@ -97,5 +97,10 @@ public class ReplInterpreterTest { testFile("empty.repl"); } + @Test + public void imports() { + testFile("imports.repl"); + } + }