Fix deprecations in testData: BlackBoxWithStdLibCodegenTest

This commit is contained in:
Ilya Gorbunov
2015-09-15 18:28:32 +03:00
parent 74e1dbff76
commit 9c974b6c5c
36 changed files with 109 additions and 109 deletions
@@ -17,7 +17,7 @@ fun dense(x: Int): Int {
}
fun box(): String {
var result = (-5..10).map(::dense).makeString()
var result = (-5..10).map(::dense).joinToString()
if (result != "19, 9, 19, 19, 10, 11, 12, 19, 19, 13, 14, 15, 16, 17, 18, 19") return "dense:" + result
return "OK"
@@ -8,7 +8,7 @@ fun foo(x: Int): Int {
}
fun box(): String {
var result = (0..10).map(::foo).makeString()
var result = (0..10).map(::foo).joinToString()
if (result != "4, 1, 1, 1, 2, 2, 2, 3, 3, 3, 4") return result
return "OK"
@@ -10,7 +10,7 @@ fun sparse(x: Int): Int {
}
fun box(): String {
var result = (0..3).map(::sparse).makeString()
var result = (0..3).map(::sparse).joinToString()
if (result != "4, 1, 2, 3") return "sparse:" + result
return "OK"
@@ -22,11 +22,11 @@ fun nonExhaustive(x: Int): Int {
}
fun box(): String {
var result = (0..3).map(::exhaustive).makeString()
var result = (0..3).map(::exhaustive).joinToString()
if (result != "4, 1, 2, 3") return "exhaustive:" + result
result = (0..3).map(::nonExhaustive).makeString()
result = (0..3).map(::nonExhaustive).joinToString()
if (result != "4, 1, 2, 3") return "non-exhaustive:" + result
return "OK"
@@ -35,19 +35,19 @@ fun charFoo(x: Char): Int {
}
fun box(): String {
var result = (1..4).map(::intFoo).makeString()
var result = (1..4).map(::intFoo).joinToString()
if (result != "5, 6, 7, 8") return "int:" + result
result = (1.toShort()..4.toShort()).map(::shortFoo).makeString()
result = (1.toShort()..4.toShort()).map(::shortFoo).joinToString()
if (result != "5, 6, 7, 8") return "short:" + result
result = (1.toByte()..4.toByte()).map(::byteFoo).makeString()
result = (1.toByte()..4.toByte()).map(::byteFoo).joinToString()
if (result != "5, 6, 7, 8") return "byte:" + result
result = ('a'..'d').map(::charFoo).makeString()
result = ('a'..'d').map(::charFoo).joinToString()
if (result != "5, 6, 7, 8") return "int:" + result
return "OK"
@@ -8,7 +8,7 @@ fun foo(x: Int): Int {
}
fun box(): String {
var result = (0..3).map(::foo).makeString()
var result = (0..3).map(::foo).joinToString()
if (result != "8, 5, 6, 7") return "unordered:" + result
return "OK"