Scratch: add multifile tests

This commit is contained in:
Natalia Selezneva
2018-01-19 12:50:19 +03:00
parent 23ef50203e
commit a96cf147fc
23 changed files with 288 additions and 21 deletions
+19
View File
@@ -0,0 +1,19 @@
val a = 1 // RESULT: val a: Int
when(a) { // OUTPUT: 1
1 -> println("1")
else -> println("2")
}
when(a) { // OUTPUT: 1
1 -> println("1")
}
when(a) { // OUTPUT: 1
2 -> println("2")
else -> println("1")
}
when(a) { // RESULT: 11
1 -> 11
else -> 12
}