doc / ch.tutteli.atrium.api.infix.en_GB / blank

blank

object blank : Keyword (source)

Represents a helper construct which allows expressing blankness. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.

expect("XZY") notToBe blank

fails {
    expect(" ") notToBe blank
}

fails { // because an empty string is also considered to be a blank string
    expect("") notToBe blank
}