withTest
Uses the given test as Assertion.holds.
Uses the given test as Assertion.holds based on the subject provided by subjectProvider.
Notice, this function might change its signature with 1.0.0 to something like
fun <T> withTest(expect: Expect, test: (T) -> Boolean): DescriptionOption<FinalStep>
Content copied to clipboard
Return
true
in case SubjectProvider.maybeSubject is None or the result of test passing the subject.