mirror of
https://github.com/aria2/aria2.git
synced 2025-01-04 09:03:46 +00:00
2010-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed unittest error * test/OptionHandlerTest.cc
This commit is contained in:
parent
ea49e9c297
commit
63c84509b9
@ -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.
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user