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:
Mikhail Zarechenskiy
2016-09-12 17:25:31 +03:00
parent f8774be8c3
commit 7739677a06
5 changed files with 19 additions and 49 deletions
+2 -3
View File
@@ -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
View File
@@ -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
View File
@@ -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
View File
@@ -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])