Fix testData/codegen: replace deprecated sort usages.
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user