void () { assertTrue(Paths.isParent("foo", "foo")); assertTrue(Paths.isParent("foo", "foo/bar")); assertTrue(Paths.isParent("foo/bar", "foo/bar")); assertTrue(Paths.isParent("foo/bar", "foo/bar/baz")); assertTrue(Paths.isParent("/", "/foo")); assertTrue(Paths.isParent("/foo", "/foo/bar")); assertFalse(Paths.isParent("foo/bar", "foo/baz")); assertFalse(Paths.isParent("foo/bar", "foo/barr")); assertFalse(Paths.isParent("foo/bar", "foo/barr/baz")); assertTrue(Paths.isParent("", "foo")); }