mirror of https://github.com/aria2/aria2
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed tests giving -1 for unsigned argument. * test/SingleFileDownloadContextTest.ccpull/1/head
parent
52b17520de
commit
a57e0b1273
|
@ -1,3 +1,8 @@
|
|||
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Removed tests giving -1 for unsigned argument.
|
||||
* test/SingleFileDownloadContextTest.cc
|
||||
|
||||
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Don't use sha256 in tests because it might not be supported by the
|
||||
|
|
|
@ -32,7 +32,6 @@ void SingleFileDownloadContextTest::testGetPieceHash()
|
|||
pieceHashes.push_back("0001");
|
||||
pieceHashes.push_back("0002");
|
||||
ctx.setPieceHashes(pieceHashes);
|
||||
CPPUNIT_ASSERT_EQUAL(std::string(""), ctx.getPieceHash(-1));
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("0000"), ctx.getPieceHash(0));
|
||||
CPPUNIT_ASSERT_EQUAL(std::string(""), ctx.getPieceHash(3));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue