object relative : Keyword (source)
A helper construct to allow expressing expectations about a path being relative. It can be used for a parameterless function so that it has one parameter and thus can be used as infix function.
expect(Paths.get("relative/path")) toBe relative
fails {
    val s = FileSystems.getDefault().separator
    val prefix = if (s == "\\") "C:" else "" // if (s == "\\") => true current os is windows
    expect(Paths.get("$prefix${s}absolute${s}path")) toBe relative
}
Since
0.14.0