diff options
author | Carl Hetherington <carl@carlh.net> | 2012-04-01 14:29:26 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2012-04-01 14:29:26 +0000 |
commit | 3240a93aad831eea5295fbca2387d2210e9e8638 (patch) | |
tree | eb351a899406b18ebe2c101c7225a6b47bcfc0ab /libs/pbd/test/convert_test.cc | |
parent | c886f761eba603a44b266ef83df6d008bd1b7c68 (diff) |
Fix libpbd tests and add test for url_decode().
git-svn-id: svn://localhost/ardour2/branches/3.0@11770 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd/test/convert_test.cc')
-rw-r--r-- | libs/pbd/test/convert_test.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/libs/pbd/test/convert_test.cc b/libs/pbd/test/convert_test.cc new file mode 100644 index 0000000000..43e6546716 --- /dev/null +++ b/libs/pbd/test/convert_test.cc @@ -0,0 +1,14 @@ +#include "convert_test.h" +#include "pbd/convert.h" + +CPPUNIT_TEST_SUITE_REGISTRATION (ConvertTest); + +using namespace std; + +void +ConvertTest::testUrlDecode () +{ + string url = "http://foo.bar.baz/A%20B%20C%20.html"; + PBD::url_decode (url); + CPPUNIT_ASSERT_EQUAL (url, string ("http://foo.bar.baz/A B C .html")); +} |