diff options
Diffstat (limited to 'test/MetaFileUtilTest.cc')
| -rw-r--r-- | test/MetaFileUtilTest.cc | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/test/MetaFileUtilTest.cc b/test/MetaFileUtilTest.cc index f300fab4..d42a4f09 100644 --- a/test/MetaFileUtilTest.cc +++ b/test/MetaFileUtilTest.cc @@ -35,8 +35,8 @@ void MetaFileUtilTest::testParseMetaFile() { void MetaFileUtilTest::testBdecoding() { try { - const char* str = "5:abcd"; - MetaFileUtil::bdecoding(str, strlen(str)); + std::string str = "5:abcd"; + MetaFileUtil::bdecoding(str); CPPUNIT_FAIL("DlAbortEx exception must be thrown."); } catch(DlAbortEx* ex) { delete ex; @@ -45,8 +45,8 @@ void MetaFileUtilTest::testBdecoding() { } try { - const char* str = "i1234"; - MetaFileUtil::bdecoding(str, strlen(str)); + std::string str = "i1234"; + MetaFileUtil::bdecoding(str); CPPUNIT_FAIL("DlAbortEx exception must be thrown."); } catch(DlAbortEx* ex) { delete ex; @@ -55,8 +55,8 @@ void MetaFileUtilTest::testBdecoding() { } try { - const char* str = "5abcd"; - MetaFileUtil::bdecoding(str, strlen(str)); + const std::string str = "5abcd"; + MetaFileUtil::bdecoding(str); CPPUNIT_FAIL("DlAbortEx exception must be thrown."); } catch(DlAbortEx* ex) { delete ex; @@ -65,8 +65,8 @@ void MetaFileUtilTest::testBdecoding() { } try { - const char* str = "d"; - MetaFileUtil::bdecoding(str, strlen(str)); + const std::string str = "d"; + MetaFileUtil::bdecoding(str); CPPUNIT_FAIL("DlAbortEx exception must be thrown."); } catch(DlAbortEx* ex) { delete ex; |
