Fix testData/codegen: replace deprecated sort usages.

This commit is contained in:
Ilya Gorbunov
2015-10-02 19:02:05 +03:00
parent c54ffe39b1
commit 43a74e575e
10 changed files with 15 additions and 15 deletions
@@ -1,4 +1,4 @@
fun box(): String {
val sorted = arrayListOf("1", "3", "2").sort()
val sorted = arrayListOf("1", "3", "2").sorted()
return if (sorted != arrayListOf("1", "2", "3")) "$sorted" else "OK"
}
@@ -23,6 +23,6 @@ class C(val nums: Map<E, Int>) {
}
fun box(): String {
val res = C(hashMapOf(E.VALUE to 11, E.VALUE2 to 12)).normalizedNums.values().sort().joinToString()
val res = C(hashMapOf(E.VALUE to 11, E.VALUE2 to 12)).normalizedNums.values().sorted().joinToString()
return if ("0.0, 1.0" == res) "OK" else "fail $res"
}