elements
A helper construct to allow expressing expectations about elements as in expect(iterable) toHave elements
. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.
Since
0.17.0
Samples
expect(setOf<String>()) notToHave elements
fails {
expect(listOf("A", "B")) notToHave elements
}