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
@@ -39,11 +39,11 @@ fun box(): String {
if (result != "5, 6, 7, 8") return "int:" + result
result = (1.toShort()..4.toShort()).map(::shortFoo).joinToString()
result = (listOf<Short>(1, 2, 3, 4)).map(::shortFoo).joinToString()
if (result != "5, 6, 7, 8") return "short:" + result
result = (1.toByte()..4.toByte()).map(::byteFoo).joinToString()
result = (listOf<Byte>(1, 2, 3, 4)).map(::byteFoo).joinToString()
if (result != "5, 6, 7, 8") return "byte:" + result