dbl -> toDouble

This commit is contained in:
Alex Tkachman
2012-02-22 13:14:41 +02:00
parent 18990e2c1b
commit 53bba59a4f
79 changed files with 335 additions and 298 deletions
+1 -1
View File
@@ -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) {
+2 -2
View File
@@ -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)
}
}