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