Adapted usage of failsWith().

This commit is contained in:
Evgeny Gerashchenko
2013-01-29 20:43:36 +04:00
parent 719ed4c795
commit dd4b508213
7 changed files with 54 additions and 54 deletions
+2 -2
View File
@@ -179,7 +179,7 @@ class StringJVMTest {
// get the smallest character(by char value)
assertEquals('a', "bacfd".reduce { v, c -> if (v > c) c else v })
failsWith<UnsupportedOperationException> {
failsWith(javaClass<UnsupportedOperationException>()) {
"".reduce { a, b -> '\n' }
}
}
@@ -188,7 +188,7 @@ class StringJVMTest {
// get the smallest character(by char value)
assertEquals('a', "bacfd".reduceRight { c, v -> if (v > c) c else v })
failsWith<UnsupportedOperationException> {
failsWith(javaClass<UnsupportedOperationException>()) {
"".reduceRight { a, b -> '\n' }
}
}