TEST: yet another string concatenation test
This commit is contained in:
committed by
vvlevchenko
parent
68e324c207
commit
282f4fee07
@@ -681,9 +681,15 @@ task initializers0(type: RunKonanTest) {
|
||||
source = "runtime/basic/initializers0.kt"
|
||||
}
|
||||
|
||||
|
||||
task initializers1(type: RunKonanTest) {
|
||||
goldValue = "Init Test\n" +
|
||||
"Done\n"
|
||||
disabled = true
|
||||
source = "runtime/basic/initializers1.kt"
|
||||
}
|
||||
|
||||
task concatenation(type: RunKonanTest) {
|
||||
goldValue = "Hello world 1 2\nHello, a\nHello, b\n"
|
||||
source = "codegen/basics/concatenation.kt"
|
||||
}
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
fun main(args: Array<String>) {
|
||||
val s = "world"
|
||||
val i = 1
|
||||
println("Hello $s $i ${2*i}")
|
||||
|
||||
for (item in listOf("a", "b")) {
|
||||
println("Hello, $item")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user