Minor: moved test for check the iterating over String to common place.

#KT-3617 Fixed
This commit is contained in:
Zalim Bashorov
2014-10-22 16:41:32 +04:00
parent 70d0c2ff92
commit 624f5c4c34
2 changed files with 7 additions and 7 deletions
+7
View File
@@ -127,4 +127,11 @@ class StringTest {
assertEquals("xxx", s.replaceBefore("=", "new name", "xxx"))
assertEquals("xxx", s.replaceBeforeLast("=", "/new/path", "xxx"))
}
test fun stringIterator() {
var sum = 0
for(c in "239")
sum += (c.toInt() - '0'.toInt())
assertTrue(sum == 14)
}
}