From d1f1ec4015acee8afce7d72056427a22f589ff4a Mon Sep 17 00:00:00 2001
From: David Robillard <d@drobilla.net>
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/Makefile.am   |  8 ++++++++
 tests/path_test.cpp | 16 ++++++++++++++++
 2 files changed, 24 insertions(+)
 create mode 100644 tests/Makefile.am
 create mode 100644 tests/path_test.cpp

(limited to 'tests')

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;
+}
-- 
cgit v1.2.1