Merge boxWithStdlib testData into box, delete BoxWithStdlib test

This commit is contained in:
Alexander Udalov
2016-03-07 13:36:14 +03:00
committed by Alexander Udalov
parent 22bfc9786a
commit 06a67e6602
535 changed files with 3520 additions and 3871 deletions
+18
View File
@@ -0,0 +1,18 @@
// WITH_RUNTIME
import Game.*
enum class Game {
ROCK,
PAPER,
SCISSORS,
LIZARD,
SPOCK
}
fun box(): String {
val a = arrayOf(LIZARD, SCISSORS, SPOCK, ROCK, PAPER)
a.sort()
val str = a.joinToString(" ")
return if (str == "ROCK PAPER SCISSORS LIZARD SPOCK") "OK" else "Fail: $str"
}