TEST: yet another string concatenation test

This commit is contained in:
Konstantin Anisimov
2016-12-08 11:23:56 +03:00
committed by vvlevchenko
parent 68e324c207
commit 282f4fee07
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -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")
}
}