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

executable

object executable : Keyword (source)

A helper construct to allow expressing expectations about a path being executable. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.

val dir = tempDir.newDirectory("test_dir")

expect(dir) toBe executable

fails {
    expect(Paths.get("non_existing_dir")) toBe executable
}