removed some warnings and reduntant code

This commit is contained in:
James Strachan
2011-12-20 17:02:30 +00:00
parent 6d19741394
commit 68d527c839
3 changed files with 7 additions and 11 deletions
+1 -1
View File
@@ -44,7 +44,7 @@ fun fails(block: fun() : Any) {
}
fun todo(block: fun(): Any) {
println("TODO at " + Exception().getStackTrace()?.get(1))
println("TODO at " + Exception().getStackTrace()?.get(1) + " for " + block)
}
/*
+1 -1
View File
@@ -104,7 +104,7 @@ class CollectionTest() : TestSupport() {
fun testForeach() {
var count = 0
val x = data.foreach{ count += it.length }
data.foreach{ count += it.length }
assertEquals(6, count)
}