From 0d009a4e980e40dc8a9c9b5e3d25c3fafb363e95 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 7 Jan 2010 21:27:39 +0000 Subject: Move unit testing and coverage framework into autowaf. Make raul tests return 0 on success, 1 on failure. Test coverage for Raul. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2368 a436a847-0d15-0410-975c-d299462d15a1 --- tests/path_test.cpp | 46 ---------------------------------------------- 1 file changed, 46 deletions(-) delete mode 100644 tests/path_test.cpp (limited to 'tests/path_test.cpp') diff --git a/tests/path_test.cpp b/tests/path_test.cpp deleted file mode 100644 index 20d6705..0000000 --- a/tests/path_test.cpp +++ /dev/null @@ -1,46 +0,0 @@ -#include -#include -#include "raul/Path.hpp" - -using namespace std; -using namespace Raul; - -int -main() -{ - list names; - names.push_back("foo+1bar(baz)"); - names.push_back("ThisCRAR"); - names.push_back("NAME"); - names.push_back("thing with a bunch of spaces"); - names.push_back("thing-with-a-bunch-of-dashes"); - names.push_back("CamelCaseABC"); - names.push_back("Signal Level [dB]"); - names.push_back("Gain dB"); - names.push_back("Dry/Wet Balance"); - names.push_back("Phaser1 - Similar to CSound's phaser1 by Sean Costello"); - - cerr << "Nameification:" << endl; - for (list::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; - - 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; - - cerr << endl << endl << "Descendants..." << endl; - cerr << "/ /foo " << Path::descendant_comparator("/", "/foo") << endl; - cerr << "/foo /foo/bar " << Path::descendant_comparator("/foo", "/foo/bar") << endl; - cerr << "/foo /foo " << Path::descendant_comparator("/foo", "/foo") << endl; - cerr << "/ / " << Path::descendant_comparator("/", "/") << endl; - cerr << "/baz / " << Path::descendant_comparator("/baz", "/") << endl; - - return 0; -} -- cgit v1.2.1