summaryrefslogtreecommitdiffstats
path: root/tests/path_test.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2006-12-13 07:09:22 +0000
committerDavid Robillard <d@drobilla.net>2006-12-13 07:09:22 +0000
commitd1f1ec4015acee8afce7d72056427a22f589ff4a (patch)
tree6105ca6af7599208fb08f930dbeebb6c9658c4b3 /tests/path_test.cpp
parent72c69be4a65be3afd9f5299f106b8903c2b84957 (diff)
downloadraul-d1f1ec4015acee8afce7d72056427a22f589ff4a.tar.gz
raul-d1f1ec4015acee8afce7d72056427a22f589ff4a.tar.bz2
raul-d1f1ec4015acee8afce7d72056427a22f589ff4a.zip
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
Diffstat (limited to 'tests/path_test.cpp')
-rw-r--r--tests/path_test.cpp16
1 files changed, 16 insertions, 0 deletions
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 <iostream>
+#include <raul/Path.h>
+
+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;
+}