Fix deprecated Range and Progression usages in testData
This commit is contained in:
@@ -11,12 +11,5 @@ fun box(): Boolean {
|
||||
val charProgression = CharProgression.fromClosedRange('a', 'z', 2)
|
||||
assertEquals('y', charProgression.last)
|
||||
|
||||
// deprecated
|
||||
val byteProgression = ByteProgression.fromClosedRange(1, 127, 2)
|
||||
assertEquals(127.toByte(), byteProgression.last)
|
||||
|
||||
val shortProgression = ShortProgression.fromClosedRange(1, 32767, 2)
|
||||
assertEquals(32767.toShort(), shortProgression.last)
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
+1
-1
@@ -14,7 +14,7 @@ fun box(): Boolean {
|
||||
if (!twoToFive.contains(4)) return false;
|
||||
if (!twoToFive.contains(5)) return false;
|
||||
if (!(twoToFive.start == 2)) return false;
|
||||
if (!(twoToFive.end == 5)) return false;
|
||||
if (!(twoToFive.endInclusive == 5)) return false;
|
||||
|
||||
var sum = 0;
|
||||
for (i in twoToFive) {
|
||||
|
||||
@@ -14,7 +14,7 @@ fun box(): Boolean {
|
||||
if (!twoToFive.contains(4)) return false;
|
||||
if (!twoToFive.contains(5)) return false;
|
||||
if (!(twoToFive.start == 2)) return false;
|
||||
if (!(twoToFive.end == 5)) return false;
|
||||
if (!(twoToFive.endInclusive == 5)) return false;
|
||||
|
||||
var sum = 0;
|
||||
for (i in twoToFive) {
|
||||
|
||||
Reference in New Issue
Block a user