Adapt ScriptCodegenTests to last changes
Get rid of possibility to configure script definition without template class, therefore all tests now are using default script argument
This commit is contained in:
+2
-3
@@ -1,5 +1,4 @@
|
||||
// expected: rv: sky color is blue
|
||||
// param: what: kotlin.String: sky
|
||||
// param: color: kotlin.String: blue
|
||||
// param: sky blue
|
||||
|
||||
val rv = "$what color is $color"
|
||||
val rv = "${args[0]} color is ${args[1]}"
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
// param: args: kotlin.Array<kotlin.String>: three little words
|
||||
// param: three little words
|
||||
// expected: rv: little
|
||||
|
||||
val rv = args[1]
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
// param: x: kotlin.Int: 10
|
||||
// param: 10
|
||||
|
||||
fun addX(y: Int) = x + y
|
||||
fun addX(y: Int) = java.lang.Integer.parseInt(args[0]) + y
|
||||
|
||||
val rv = addX(3)
|
||||
|
||||
|
||||
+2
-3
@@ -1,5 +1,4 @@
|
||||
// expected: rv: 19
|
||||
// param: aa: kotlin.Long: 17
|
||||
// param: bb: kotlin.Int: 2
|
||||
// param: 17 2
|
||||
|
||||
val rv = aa + bb
|
||||
val rv = java.lang.Long.parseLong(args[0]) + java.lang.Integer.parseInt(args[1])
|
||||
|
||||
Reference in New Issue
Block a user