removed some noise from the fail() methods

This commit is contained in:
James Strachan
2012-03-13 12:17:59 +00:00
parent df2d9769fa
commit 859bab0305
+2 -2
View File
@@ -95,7 +95,7 @@ fun fails(block: ()-> Unit): Throwable? {
asserter.fail("Expected an exception to be thrown")
return null
} catch (e: Throwable) {
println("Caught excepted exception: $e")
//println("Caught expected exception: $e")
return e
}
}
@@ -106,7 +106,7 @@ fun <T: Throwable> failsWith(block: ()-> Unit) {
block()
asserter.fail("Expected an exception to be thrown")
} catch (e: T) {
println("Caught excepted exception: $e")
//println("Caught expected exception: $e")
// OK
}
}