assertRaises
Deprecated
This function has been renamed checkThrows.
Replace with
opensavvy.prepared.compat.arrow.core.checkRaises(expected, block)
Content copied to clipboard
Fails the test if block doesn't raise with expected.
Example
test("√-1 raises") {
assertRaises(NegativeSquareRoot) {
sqrt(-1.0)
}
}
Content copied to clipboard