object elements : Keyword
(source)
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.
expect(setOf<String>()) notToHave elements
fails {
expect(listOf("A", "B")) notToHave elements
}
Since
0.17.0