order

object order : Keyword(source)

Represents the pseudo keyword order as in inAny order. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.

Samples

expect(listOf("A", "B")) toContain o inGiven order and only the values("A", "B")

fails {
    expect(listOf(5, 3, 2, 2, 4)) toContain o inAny order atMost 2 entry {
        it toBeGreaterThan 2
    }

}