2010-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Fixed unittest error
	* test/OptionHandlerTest.cc
This commit is contained in:
Tatsuhiro Tsujikawa 2010-11-25 12:14:17 +00:00
parent ea49e9c297
commit 63c84509b9
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed unittest error
* test/OptionHandlerTest.cc
2010-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Made strings which are only used in comparison plain C strings.

View File

@ -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());
}