withTest
abstract fun withTest(test: () -> Boolean): Descriptive.DescriptionOption<Descriptive.FinalStep>(source)
Uses the given test as DescriptiveAssertion.holds.
abstract fun <T> withTest(expect: Expect<T>, test: (T) -> Boolean): Descriptive.DescriptionOption<Descriptive.FinalStep>(source)
Uses the given test as DescriptiveAssertion.holds based on the subject provided by expect.
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