abstract fun withTest(test: () -> Boolean): Descriptive.DescriptionOption<Descriptive.FinalStep>
(source)
Uses the given test as DescriptiveAssertion.holds.
abstract fun <T> withTest(subjectProvider: SubjectProvider<T>, test: (T) -> Boolean): Descriptive.DescriptionOption<Descriptive.FinalStep>
(source)
Uses the given test as DescriptiveAssertion.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>