test imports work in the following lines of REPL

This commit is contained in:
Stepan Koltsov
2012-06-13 22:32:36 +04:00
parent 6384ee9393
commit 55ffd797a4
2 changed files with 11 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
>>> import java.io.ByteArrayOutputStream
null
>>> val s = ByteArrayOutputStream()
null
>>> s.getClass()!!.getName()
java.io.ByteArrayOutputStream
@@ -97,5 +97,10 @@ public class ReplInterpreterTest {
testFile("empty.repl");
}
@Test
public void imports() {
testFile("imports.repl");
}
}