Lines Matching defs:relativize
178 PathOps relativize(String other, String expected) {
179 out.format("test relativize %s\n", other);
182 check(path.relativize(that), expected);
508 // relativize
510 .relativize("foo\\bar", "")
511 .relativize("foo", "..");
513 .relativize("C:\\a", "..\\..")
514 .relativize("C:\\a\\b\\c", "");
516 .relativize("\\\\server\\share\\bar", "..\\bar")
517 .relativize("\\\\server\\share\\foo", "");
519 .relativize("", "");
879 // relativize
881 .relativize("/a/b/c", "")
882 .relativize("/a/b/c/d/e", "d/e")
883 .relativize("/a/x", "../../x")
884 .relativize("/x", "../../../x");
886 .relativize("a/b/c/d", "d")
887 .relativize("a/x", "../../x")
888 .relativize("x", "../../../x")
889 .relativize("", "../../..");
891 .relativize("a", "a")
892 .relativize("a/b/c", "a/b/c")
893 .relativize("", "");
961 path.relativize(null);