[test] Fix testData for AbstractReplInterpreterTest
This commit is contained in:
committed by
Pavel V. Talanov
parent
9bf0c8453d
commit
ac6a9d95af
+1
-1
@@ -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()
|
||||||
|
|||||||
@@ -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
@@ -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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user