summaryrefslogtreecommitdiffstats
path: root/test/path_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/path_test.cpp')
-rw-r--r--test/path_test.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/path_test.cpp b/test/path_test.cpp
index 1bdd99e..d9d2b57 100644
--- a/test/path_test.cpp
+++ b/test/path_test.cpp
@@ -39,6 +39,7 @@ main()
CHECK(Path("/").is_parent_of(Path("/foo")));
CHECK(Path("/foo").is_parent_of(Path("/foo/bar")));
CHECK(!(Path("/foo").is_parent_of(Path("/foo2"))));
+ CHECK(!(Path("/foo").is_parent_of(Path("/foo"))));
CHECK(Path::lca(Path("/foo"), Path("/foo/bar/baz")) == Path("/"));
CHECK(Path::lca(Path("/foo/bar"), Path("/foo/bar/baz")) == Path("/foo"));
@@ -52,6 +53,7 @@ main()
CHECK(Path::is_valid("/"));
CHECK(!Path::is_valid("/foo/3foo/bar"));
+ CHECK(Path::descendant_comparator(Path("/"), Path("/")));
CHECK(Path::descendant_comparator(Path("/"), Path("/foo")));
CHECK(Path::descendant_comparator(Path("/foo"), Path("/foo/bar")));
CHECK(Path::descendant_comparator(Path("/foo"), Path("/foo")));