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.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/path_test.cpp b/tests/path_test.cpp
index 3bd14c9..ac7ff2b 100644
--- a/tests/path_test.cpp
+++ b/tests/path_test.cpp
@@ -23,6 +23,11 @@ main()
cerr << "Nameification:" << endl;
for (list<string>::iterator i = names.begin(); i != names.end(); ++i)
cerr << *i << " -> " << Path::nameify(*i) << endl;
+
+ cerr << endl;
+ cerr << Path("/foo/bar") << " parent = " << Path("/foo/bar").parent() << endl;
+ cerr << Path("/foo") << " parent = " << Path("/foo").parent() << endl;
+ cerr << Path("/") << " parent = " << Path("/").parent() << endl;
cerr << "1's are good..." << endl << endl;