summaryrefslogtreecommitdiffstats
path: root/tests/path_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/path_test.cpp')
-rw-r--r--tests/path_test.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/path_test.cpp b/tests/path_test.cpp
index cf62340..c5c4415 100644
--- a/tests/path_test.cpp
+++ b/tests/path_test.cpp
@@ -14,6 +14,13 @@ main()
cerr << !(Path("/foo").is_parent_of(Path("/foo2"))) << endl;
cerr << Path::nameify("Signal Level [dB]") << endl;
-
+
+ cerr << endl << endl << "Descendants..." << endl;
+ cerr << "/ /foo " << Path::descendant_comparator("/", "/foo") << endl;
+ cerr << "/foo /foo/bar " << Path::descendant_comparator("/foo", "/foo/bar") << endl;
+ cerr << "/foo /foo " << Path::descendant_comparator("/foo", "/foo") << endl;
+ cerr << "/ / " << Path::descendant_comparator("/", "/") << endl;
+ cerr << "/baz / " << Path::descendant_comparator("/baz", "/") << endl;
+
return 0;
}