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/AlphaNumberDecoratorTest * test/BitfieldManTest.cc * test/DefaultBtContextTest.ccpull/1/head
parent
01b3968f92
commit
ab06444ba7
|
@ -1,3 +1,10 @@
|
|||
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Removed tests giving -1 for unsigned argument.
|
||||
* test/AlphaNumberDecoratorTest
|
||||
* test/BitfieldManTest.cc
|
||||
* test/DefaultBtContextTest.cc
|
||||
|
||||
2009-02-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed compile error without libcares when epoll is available.
|
||||
|
|
|
@ -9,7 +9,6 @@ class AlphaNumberDecoratorTest:public CppUnit::TestFixture {
|
|||
CPPUNIT_TEST_SUITE(AlphaNumberDecoratorTest);
|
||||
CPPUNIT_TEST(testDecorate);
|
||||
CPPUNIT_TEST(testDecorate_uppercase);
|
||||
CPPUNIT_TEST(testDecorate_minus);
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
private:
|
||||
|
||||
|
@ -19,7 +18,6 @@ public:
|
|||
|
||||
void testDecorate();
|
||||
void testDecorate_uppercase();
|
||||
void testDecorate_minus();
|
||||
};
|
||||
|
||||
|
||||
|
@ -41,9 +39,4 @@ void AlphaNumberDecoratorTest::testDecorate_uppercase()
|
|||
CPPUNIT_ASSERT_EQUAL(std::string("AAB"), AlphaNumberDecorator(3, true).decorate(1));
|
||||
}
|
||||
|
||||
void AlphaNumberDecoratorTest::testDecorate_minus()
|
||||
{
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("NXMRLXV"), AlphaNumberDecorator(1, true).decorate(-1));
|
||||
}
|
||||
|
||||
} // namespace aria2
|
||||
|
|
|
@ -553,9 +553,6 @@ void BitfieldManTest::testGetMissingUnusedLength()
|
|||
// from index 10 and all blocks are unused and not acquired.
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)10ULL, bf.getMissingUnusedLength(10));
|
||||
|
||||
// from index -1
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, bf.getMissingUnusedLength(-1));
|
||||
|
||||
// from index 11
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)0ULL, bf.getMissingUnusedLength(11));
|
||||
|
||||
|
|
|
@ -94,8 +94,6 @@ void DefaultBtContextTest::testGetPieceHash() {
|
|||
btContext.getPieceHash(1));
|
||||
CPPUNIT_ASSERT_EQUAL(Util::toHex((const unsigned char*)"CCCCCCCCCCCCCCCCCCCC", 20),
|
||||
btContext.getPieceHash(2));
|
||||
CPPUNIT_ASSERT_EQUAL(std::string(""),
|
||||
btContext.getPieceHash(-1));
|
||||
CPPUNIT_ASSERT_EQUAL(std::string(""),
|
||||
btContext.getPieceHash(3));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue