summaryrefslogtreecommitdiffstats
path: root/test/path_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-14 21:14:52 +0000
committerDavid Robillard <d@drobilla.net>2012-08-14 21:14:52 +0000
commit2118d961d97a1e454ee5391785b700d70f22f387 (patch)
tree554beb7c7f3c1d1e1025c41fabc350dfbc494de2 /test/path_test.cpp
parent1b8b57121623825a4af571042ce9d365b9d55f05 (diff)
downloadraul-2118d961d97a1e454ee5391785b700d70f22f387.tar.gz
raul-2118d961d97a1e454ee5391785b700d70f22f387.tar.bz2
raul-2118d961d97a1e454ee5391785b700d70f22f387.zip
Remove Table classes.
More thorough Path testing. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4695 a436a847-0d15-0410-975c-d299462d15a1
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")));