Update range iteration tests and regenerate test data.
This commit is contained in:
+4
-4
@@ -12,23 +12,23 @@ fun box(): String {
|
||||
return "Wrong elements for 5..5: $list1"
|
||||
}
|
||||
|
||||
val list2 = ArrayList<Byte>()
|
||||
val list2 = ArrayList<Int>()
|
||||
val range2 = 5.toByte()..5.toByte()
|
||||
for (i in range2) {
|
||||
list2.add(i)
|
||||
if (list2.size() > 23) break
|
||||
}
|
||||
if (list2 != listOf<Byte>(5.toByte())) {
|
||||
if (list2 != listOf<Int>(5)) {
|
||||
return "Wrong elements for 5.toByte()..5.toByte(): $list2"
|
||||
}
|
||||
|
||||
val list3 = ArrayList<Short>()
|
||||
val list3 = ArrayList<Int>()
|
||||
val range3 = 5.toShort()..5.toShort()
|
||||
for (i in range3) {
|
||||
list3.add(i)
|
||||
if (list3.size() > 23) break
|
||||
}
|
||||
if (list3 != listOf<Short>(5.toShort())) {
|
||||
if (list3 != listOf<Int>(5)) {
|
||||
return "Wrong elements for 5.toShort()..5.toShort(): $list3"
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user