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