Fix deprecated Range and Progression usages in testData

This commit is contained in:
Ilya Gorbunov
2016-01-15 18:28:35 +03:00
parent d48ec7e296
commit b97e436a50
9 changed files with 17 additions and 24 deletions
@@ -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
View File
@@ -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) {
+1 -1
View File
@@ -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) {