Simplify long constants in range iteration tests

This commit is contained in:
Ilya Gorbunov
2018-08-02 23:53:35 +03:00
parent bb1ce52267
commit 1b1713a849
37 changed files with 107 additions and 107 deletions
@@ -38,13 +38,13 @@ fun box(): String {
}
val list4 = ArrayList<Long>()
val range4 = (3.toLong() downTo 5.toLong()).reversed()
val range4 = (3L downTo 5L).reversed()
for (i in range4) {
list4.add(i)
if (list4.size > 23) break
}
if (list4 != listOf<Long>()) {
return "Wrong elements for (3.toLong() downTo 5.toLong()).reversed(): $list4"
return "Wrong elements for (3L downTo 5L).reversed(): $list4"
}
val list5 = ArrayList<Char>()