I've created sample class to test assertions in Kotlin
class Assertion {
fun sum(a: Int, b: Int): Int {
assert(a > 0 && b > 0)
return a + b
}
}
fun main(args: Array<String>) {
Assertion().sum(-1, 2)
}
and was using the following options but the program doesn't throw assert exception.
-ea:AssertionKt
, -ea:Assertion
and -ea:...