summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-27 19:20:53 +0000
committerDavid Robillard <d@drobilla.net>2012-04-27 19:20:53 +0000
commit1b29f20d73d839c324cf4ce2df61d2e857617383 (patch)
tree53e5d53faac6de9c2e77104131a5dd43a4d99cb8 /test
parent62c10d2abae74e8c45b4ddb182757e934618dd72 (diff)
downloadraul-1b29f20d73d839c324cf4ce2df61d2e857617383.tar.gz
raul-1b29f20d73d839c324cf4ce2df61d2e857617383.tar.bz2
raul-1b29f20d73d839c324cf4ce2df61d2e857617383.zip
Implement connecting via atom interface.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4285 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test')
-rw-r--r--test/path_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/path_test.cpp b/test/path_test.cpp
index 099b463..7df1acf 100644
--- a/test/path_test.cpp
+++ b/test/path_test.cpp
@@ -41,6 +41,10 @@ main()
CHECK(Path("/foo").is_parent_of(Path("/foo/bar")));
CHECK(!(Path("/foo").is_parent_of(Path("/foo2"))));
+ CHECK(Path::lca(Path("/foo"), Path("/foo/bar/baz")) == Path("/"));
+ CHECK(Path::lca(Path("/foo/bar"), Path("/foo/bar/baz")) == Path("/foo"));
+ CHECK(Path::lca(Path("/foo/bar/quux"), Path("/foo/bar/baz")) == Path("/foo/bar"));
+
CHECK(!Path::is_valid(""));
CHECK(!Path::is_valid("hello"));
CHECK(!Path::is_valid("/foo/bar/"));