diff options
author | David Robillard <d@drobilla.net> | 2006-12-13 07:09:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2006-12-13 07:09:22 +0000 |
commit | d1f1ec4015acee8afce7d72056427a22f589ff4a (patch) | |
tree | 6105ca6af7599208fb08f930dbeebb6c9658c4b3 /tests | |
parent | 72c69be4a65be3afd9f5299f106b8903c2b84957 (diff) | |
download | raul-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')
-rw-r--r-- | tests/Makefile.am | 8 | ||||
-rw-r--r-- | tests/path_test.cpp | 16 |
2 files changed, 24 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..0732d07 --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,8 @@ +if BUILD_TESTS + +AM_CXXFLAGS = -I.. +bin_PROGRAMS = path_test + +path_test_SOURCES = path_test.cpp + +endif 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; +} |