Merge boxWithStdlib testData into box, delete BoxWithStdlib test
This commit is contained in:
committed by
Alexander Udalov
parent
22bfc9786a
commit
06a67e6602
@@ -0,0 +1,19 @@
|
||||
// WITH_RUNTIME
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
fun sparse(x: Int): Int {
|
||||
return when ((x % 4) * 100) {
|
||||
100 -> 1
|
||||
200 -> 2
|
||||
300 -> 3
|
||||
else -> 4
|
||||
}
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
var result = (0..3).map(::sparse).joinToString()
|
||||
|
||||
if (result != "4, 1, 2, 3") return "sparse:" + result
|
||||
return "OK"
|
||||
}
|
||||
Reference in New Issue
Block a user