strikt-core / strikt.api / AtomicAssertion / fail

fail

abstract fun fail(actual: Any?, description: String? = null, cause: Throwable? = null): Unit

Mark this result as failed due to a comparison between two values.

Parameters

actual - an actual value, that is the value that differed from the expected value.

description - A description of the failure. May contain a String.format style placeholder for the actual value.