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