Simplify long constants in range iteration tests
This commit is contained in:
@@ -38,13 +38,13 @@ fun box(): String {
|
||||
}
|
||||
|
||||
val list4 = ArrayList<Long>()
|
||||
val range4 = 10.toLong()..-5.toLong()
|
||||
val range4 = 10L..-5L
|
||||
for (i in range4) {
|
||||
list4.add(i)
|
||||
if (list4.size > 23) break
|
||||
}
|
||||
if (list4 != listOf<Long>()) {
|
||||
return "Wrong elements for 10.toLong()..-5.toLong(): $list4"
|
||||
return "Wrong elements for 10L..-5L: $list4"
|
||||
}
|
||||
|
||||
val list5 = ArrayList<Char>()
|
||||
|
||||
Reference in New Issue
Block a user