better ScriptGenTest: check more fields
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
// expected: null
|
||||
// expected: rv: null
|
||||
System.out!!.println("hello world")
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// expected: sky color is blue
|
||||
// expected: rv: sky color is blue
|
||||
// param: what: jet.String: sky
|
||||
// param: color: jet.String: blue
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// param: args: jet.Array<jet.String>: three little words
|
||||
// expected: little
|
||||
// expected: rv: little
|
||||
|
||||
args[1]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// expected: 19
|
||||
// expected: rv: 19
|
||||
// param: aa: jet.Long: 17
|
||||
// param: bb: jet.Int: 2
|
||||
|
||||
|
||||
@@ -7,4 +7,4 @@ if (true) {
|
||||
|
||||
x
|
||||
|
||||
// expected: 29
|
||||
// expected: rv: 29
|
||||
|
||||
@@ -8,4 +8,4 @@ if (true) {
|
||||
|
||||
x
|
||||
|
||||
// expected: 50
|
||||
// expected: rv: 50
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
if (true) {
|
||||
val archenemy = "Jim Moriarty"
|
||||
}
|
||||
|
||||
true
|
||||
|
||||
// expected: rv: true
|
||||
// expected: archenemy: <nofield>
|
||||
@@ -1 +1,3 @@
|
||||
"O" + "K"
|
||||
|
||||
// expected: rv: OK
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// expected: 3628800
|
||||
// expected: rv: 3628800
|
||||
|
||||
fun factorial(n: Int): Int {
|
||||
var product = 1
|
||||
|
||||
@@ -4,4 +4,4 @@ fun foo(y: Int) = x + y
|
||||
|
||||
foo(33)
|
||||
|
||||
// expected: 45
|
||||
// expected: rv: 45
|
||||
|
||||
Reference in New Issue
Block a user