diff options
author | David Robillard <d@drobilla.net> | 2012-08-13 00:29:03 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-13 00:29:03 +0000 |
commit | 25fa6229ce2c4edc0960d39cbc424e834a4244ea (patch) | |
tree | 7382b592e71275e786fd20f1cf57f0d25155dc6b /test | |
parent | 40516c23f43aaf4ca785014dff596d8f66677de3 (diff) | |
download | raul-25fa6229ce2c4edc0960d39cbc424e834a4244ea.tar.gz raul-25fa6229ce2c4edc0960d39cbc424e834a4244ea.tar.bz2 raul-25fa6229ce2c4edc0960d39cbc424e834a4244ea.zip |
Update path test.
git-svn-id: http://svn.drobilla.net/lad/trunk/raul@4673 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'test')
-rw-r--r-- | test/path_test.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/path_test.cpp b/test/path_test.cpp index 57230cc..f267595 100644 --- a/test/path_test.cpp +++ b/test/path_test.cpp @@ -45,8 +45,7 @@ main() names.push_back("Phaser1 - Similar to CSound's phaser1 by Sean Costello"); for (list<string>::iterator i = names.begin(); i != names.end(); ++i) { - CHECK(Symbol::is_valid(Path::nameify(*i))); - CHECK(Symbol::is_valid(Symbol::symbolify(*i))); + CHECK(strcmp(Symbol::symbolify(*i).c_str(), "")); } CHECK(Path("/foo/bar").parent() == Path("/foo")); @@ -81,8 +80,7 @@ main() CHECK(!Symbol::is_valid("/I/have/slashes")); CHECK(!Symbol::is_valid("!illegalchar")); CHECK(!Symbol::is_valid("0illegalleadingdigit")); - CHECK(Symbol::is_valid(Symbol::symbolify(""))); - CHECK(Symbol::is_valid(Symbol::symbolify("1hello"))); + CHECK(strcmp(Symbol::symbolify("").c_str(), "")); return 0; } |