mirror of https://github.com/aria2/aria2
2010-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed unittest error * test/OptionHandlerTest.ccpull/1/head
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>
|
2010-11-25 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Made strings which are only used in comparison plain C strings.
|
Made strings which are only used in comparison plain C strings.
|
||||||
|
|
|
@ -197,7 +197,7 @@ void OptionHandlerTest::testParameterOptionHandler_2argsInit()
|
||||||
handler.parse(option, "value3");
|
handler.parse(option, "value3");
|
||||||
CPPUNIT_FAIL("exception must be thrown.");
|
CPPUNIT_FAIL("exception must be thrown.");
|
||||||
} catch(Exception& e) {}
|
} catch(Exception& e) {}
|
||||||
CPPUNIT_ASSERT_EQUAL(std::string("value1,value2"),
|
CPPUNIT_ASSERT_EQUAL(std::string("value1, value2"),
|
||||||
handler.createPossibleValuesString());
|
handler.createPossibleValuesString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -219,7 +219,7 @@ void OptionHandlerTest::testParameterOptionHandler_listInit()
|
||||||
handler.parse(option, "value3");
|
handler.parse(option, "value3");
|
||||||
CPPUNIT_FAIL("exception must be thrown.");
|
CPPUNIT_FAIL("exception must be thrown.");
|
||||||
} catch(Exception& e) {}
|
} catch(Exception& e) {}
|
||||||
CPPUNIT_ASSERT_EQUAL(std::string("value1,value2"),
|
CPPUNIT_ASSERT_EQUAL(std::string("value1, value2"),
|
||||||
handler.createPossibleValuesString());
|
handler.createPossibleValuesString());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue