[PowerAssert] Add codegen tests
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
fun expectThrowableMessage(block: () -> Unit): String {
|
||||
try {
|
||||
block()
|
||||
throw AssertionError("no failure")
|
||||
} catch (e: Throwable) {
|
||||
return e.message ?: throw AssertionError("no message")
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user