[test] Fix testData for AbstractReplInterpreterTest

This commit is contained in:
Dmitry Kovanikov
2015-09-09 19:30:07 +03:00
committed by Pavel V. Talanov
parent 9bf0c8453d
commit ac6a9d95af
4 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
>>> fun foo() = 765
>>> foo(1)
/line2.kts:1:5: error: too many arguments for public final fun foo(): kotlin.Int defined in <script>
error: too many arguments for public final fun foo(): kotlin.Int defined in <script>
foo(1)
^
>>> foo()
-2
View File
@@ -1,6 +1,5 @@
>>> throw Exception("hi there")
java.lang.Exception: hi there
at Line1.<init>(Unknown Source)
>>> fun foo() = 2
>>> foo()
2
@@ -8,4 +7,3 @@ java.lang.Exception: hi there
>>> bar()
java.lang.AssertionError
at Line4.bar(Unknown Source)
at Line5.<init>(Unknown Source)
+1 -1
View File
@@ -2,6 +2,6 @@
... object Bar {
... }
... }
/line4.kts:2:1: error: named object 'Bar' is a singleton and cannot be local. Try to use anonymous object instead
error: named object 'Bar' is a singleton and cannot be local. Try to use anonymous object instead
object Bar {
^
+2 -2
View File
@@ -1,8 +1,8 @@
>>> )(
/line1.kts:1:1: error: expecting an element
error: expecting an element
)(
^
/line1.kts:1:3: error: expecting an expression
error: expecting an expression
)(
^
>>> fun foo() = 98