public class PredicateKt
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
matchesPredicate(Assert<? extends T> $receiver,
kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> f)
Asserts if the values satisfies the predicate provided.
|
public static <T> void matchesPredicate(Assert<? extends T> $receiver, kotlin.jvm.functions.Function1<? super T,java.lang.Boolean> f)
Asserts if the values satisfies the predicate provided.
val divisibleBy5 : (Int) -> Boolean = { it % 5 == 0 }
assert(10).matchesPredicate(divisibleBy5)