JS: move expressions test to box tests
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
package foo
|
||||
|
||||
|
||||
fun box(): String {
|
||||
|
||||
val success = (when(1) {
|
||||
2 -> 3
|
||||
1 -> 1
|
||||
else -> 5
|
||||
} == 1)
|
||||
|
||||
return if (success) "OK" else "fail"
|
||||
}
|
||||
Reference in New Issue
Block a user