doc / ch.tutteli.atrium.domain.builders.utils / subAssert

subAssert

inline fun <T : Any> subAssert(noinline assertionCreator: Assert<T>.() -> Unit): Assert<T>.() -> Unit
Deprecated: Switch from Assert to Expect; will be removed with 1.0.0

Helper function to create an Assert&lt;T&gt; lambda with receiver; helps to circumvent Kotlin type inference bugs involving lambdas.

Following a few examples of bugs (you might want to vote if you encounter the same):

Parameters

assertionCreator - Your assertion creator lambda.

Return
your passed lambda.