Remove deprecated ranges from tests and take into account that Byte and Short rangeTo now returns IntRange.

This commit is contained in:
Ilya Gorbunov
2015-10-29 22:24:41 +03:00
parent 854d376988
commit 5e6d16103e
3 changed files with 8 additions and 15 deletions
+3 -2
View File
@@ -5,11 +5,12 @@ fun box(): String {
val charRange = '0'..'9'
'9' in charRange
val byteRange = 0.toByte()..9.toByte()
9.toByte() in byteRange
// seems no stdlib available here, thus no contains as extension
9 in byteRange
val longRange = 0.toLong()..9.toLong()
9.toLong() in longRange
val shortRange = 0.toShort()..9.toShort()
9.toShort() in shortRange
9 in shortRange
return "OK"
}