From d1f1ec4015acee8afce7d72056427a22f589ff4a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 Dec 2006 07:09:22 +0000 Subject: Path parent/child bug fixes, added unit tests. Breadcrumb/browsing/subsubpatch bug fixes. Fixed about window icon and glade error messages. git-svn-id: http://svn.drobilla.net/lad/raul@223 a436a847-0d15-0410-975c-d299462d15a1 --- tests/path_test.cpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 tests/path_test.cpp (limited to 'tests/path_test.cpp') diff --git a/tests/path_test.cpp b/tests/path_test.cpp new file mode 100644 index 0000000..1620703 --- /dev/null +++ b/tests/path_test.cpp @@ -0,0 +1,16 @@ +#include +#include + +using namespace std; + +int +main() +{ + cerr << "1's are good..." << endl << endl; + + cerr << (Path("/").is_parent_of(Path("/foo"))) << endl; + cerr << (Path("/foo").is_parent_of(Path("/foo/bar"))) << endl; + cerr << !(Path("/foo").is_parent_of(Path("/foo2"))) << endl; + + return 0; +} -- cgit v1.2.1