dbl -> toDouble
This commit is contained in:
@@ -24,7 +24,7 @@ class OldStdlibTest() : TestSupport() {
|
||||
val x = ByteArray (10)
|
||||
|
||||
for(index in 0..9) {
|
||||
x [index] = index.byte
|
||||
x [index] = index.toByte()
|
||||
}
|
||||
|
||||
for(b in x.inputStream) {
|
||||
|
||||
@@ -9,7 +9,7 @@ class StringTest() : TestCase() {
|
||||
fun testStringIterator() {
|
||||
var sum = 0
|
||||
for(c in "239")
|
||||
sum += (c.int - '0'.int)
|
||||
sum += (c.toInt() - '0'.toInt())
|
||||
assertTrue(sum == 14)
|
||||
}
|
||||
|
||||
@@ -22,7 +22,7 @@ class StringTest() : TestCase() {
|
||||
println(sb)
|
||||
|
||||
for(c in sb)
|
||||
sum += (c.int - '0'.int)
|
||||
sum += (c.toInt() - '0'.toInt())
|
||||
assertTrue(sum == 14)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user