fixed a lot of issues, now successfully runs the test with --enable-pedantic; refs #8

This commit is contained in:
Marc Wäckerlin
2014-03-28 11:50:39 +00:00
parent e846c326f1
commit 190b469d56
33 changed files with 398 additions and 409 deletions

View File

@@ -29,7 +29,8 @@ class StringTest: public CppUnit::TestFixture {
void Join() {
std::list<std::string> l;
l<<"Hello"<<"World"<<"here"<<"I"<<"am";
CPPUNIT_ASSERT(mrw::join(l)=="Hello World here I am");
CPPUNIT_ASSERT_EQUAL(std::list<std::string>::size_type(5), l.size());
CPPUNIT_ASSERT_EQUAL(std::string("Hello World here I am"), mrw::join(l));
}
void Split() {
std::string text("Hello World here I am");