assertk / thrownError

thrownError

fun <T> Assert<Result<T>>.thrownError(f: Assert<Throwable>.() -> Unit): Unit
Deprecated: Use isFailure().all(f) instead

Platform and version requirements: Common

Runs the given lambda if the block throws an error, otherwise fails.