Fix libpbd tests and add test for url_decode().
git-svn-id: svn://localhost/ardour2/branches/3.0@11770 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
c886f761eb
commit
3240a93aad
|
@ -6,7 +6,7 @@ if [ ! -f './id.cc' ]; then
|
|||
fi
|
||||
|
||||
srcdir=`pwd`
|
||||
cd ../../build/default
|
||||
cd ../../build
|
||||
|
||||
libs='libs'
|
||||
|
||||
|
|
14
libs/pbd/test/convert_test.cc
Normal file
14
libs/pbd/test/convert_test.cc
Normal file
|
@ -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"));
|
||||
}
|
|
@ -8,7 +8,7 @@ CPPUNIT_TEST_SUITE_REGISTRATION (XPathTest);
|
|||
|
||||
using namespace std;
|
||||
|
||||
static string const prefix = "../../libs/pbd/test/";
|
||||
static string const prefix = "../libs/pbd/test/";
|
||||
|
||||
void
|
||||
XPathTest::testMisc ()
|
||||
|
|
|
@ -136,6 +136,7 @@ def build(bld):
|
|||
test/xpath.cc
|
||||
test/scalar_properties.cc
|
||||
test/signals_test.cc
|
||||
test/convert_test.cc
|
||||
'''.split()
|
||||
testobj.target = 'run-tests'
|
||||
testobj.includes = obj.includes + ['test', '../pbd']
|
||||
|
|
Loading…
Reference in New Issue
Block a user