2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Removed tests giving -1 for unsigned argument.
	* test/SingleFileDownloadContextTest.cc
pull/1/head
Tatsuhiro Tsujikawa 2009-02-10 14:45:21 +00:00
parent 52b17520de
commit a57e0b1273
2 changed files with 5 additions and 1 deletions

View File

@ -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

View File

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