From 63c84509b9c4db2b4494991a41c6dfce9b5974fe Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Thu, 25 Nov 2010 12:14:17 +0000 Subject: [PATCH] 2010-11-25 Tatsuhiro Tsujikawa Fixed unittest error * test/OptionHandlerTest.cc --- ChangeLog | 5 +++++ test/OptionHandlerTest.cc | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index b048c815..7e10c8c1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-11-25 Tatsuhiro Tsujikawa + + Fixed unittest error + * test/OptionHandlerTest.cc + 2010-11-25 Tatsuhiro Tsujikawa Made strings which are only used in comparison plain C strings. diff --git a/test/OptionHandlerTest.cc b/test/OptionHandlerTest.cc index a2430724..3c4996ca 100644 --- a/test/OptionHandlerTest.cc +++ b/test/OptionHandlerTest.cc @@ -197,7 +197,7 @@ void OptionHandlerTest::testParameterOptionHandler_2argsInit() handler.parse(option, "value3"); CPPUNIT_FAIL("exception must be thrown."); } catch(Exception& e) {} - CPPUNIT_ASSERT_EQUAL(std::string("value1,value2"), + CPPUNIT_ASSERT_EQUAL(std::string("value1, value2"), handler.createPossibleValuesString()); } @@ -219,7 +219,7 @@ void OptionHandlerTest::testParameterOptionHandler_listInit() handler.parse(option, "value3"); CPPUNIT_FAIL("exception must be thrown."); } catch(Exception& e) {} - CPPUNIT_ASSERT_EQUAL(std::string("value1,value2"), + CPPUNIT_ASSERT_EQUAL(std::string("value1, value2"), handler.createPossibleValuesString()); }