[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 >>> fun foo() = 765
>>> foo(1) >>> 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(1)
^ ^
>>> foo() >>> foo()
-2
View File
@@ -1,6 +1,5 @@
>>> throw Exception("hi there") >>> throw Exception("hi there")
java.lang.Exception: hi there java.lang.Exception: hi there
at Line1.<init>(Unknown Source)
>>> fun foo() = 2 >>> fun foo() = 2
>>> foo() >>> foo()
2 2
@@ -8,4 +7,3 @@ java.lang.Exception: hi there
>>> bar() >>> bar()
java.lang.AssertionError java.lang.AssertionError
at Line4.bar(Unknown Source) at Line4.bar(Unknown Source)
at Line5.<init>(Unknown Source)
+1 -1
View File
@@ -2,6 +2,6 @@
... object Bar { ... 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 { 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 >>> fun foo() = 98