void () { assertThat(OSAgnosticPathUtil.isAbsolute("/tmp")).isTrue(); assertThat(OSAgnosticPathUtil.isAbsolute("/")).isTrue(); assertThat(OSAgnosticPathUtil.isAbsolute("C:/")).isTrue(); assertThat(OSAgnosticPathUtil.isAbsolute("d:\\x")).isTrue(); if (SystemInfo.isWindows) { assertThat(OSAgnosticPathUtil.isAbsolute("\\\\host")).isTrue(); assertThat(OSAgnosticPathUtil.isAbsolute("\\\\")).isTrue(); } assertThat(OSAgnosticPathUtil.isAbsolute("//host")).isTrue(); assertThat(OSAgnosticPathUtil.isAbsolute("")).isFalse(); assertThat(OSAgnosticPathUtil.isAbsolute("\\a")).isFalse(); assertThat(OSAgnosticPathUtil.isAbsolute("\\")).isFalse(); assertThat(OSAgnosticPathUtil.isAbsolute("x:")).isFalse(); }