strikt-core / strikt.api / Assertion / Builder / not

not

abstract fun not(): Builder<T>

Reverses any assertions chained after this method.

Return
an assertion builder that negates the results of any assertions applied to its subject.

abstract infix fun not(assertions: Builder<T>.() -> Unit): Builder<T>

Evaluates a block of assertions on the current subject by executing them in reverse.

Parameters

assertions - the assertions to evaluate in reverse

See Also

not