Selaa lähdekoodia

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
Tatsuhiro Tsujikawa 16 vuotta sitten
vanhempi
commit
ab06444ba7
4 muutettua tiedostoa jossa 7 lisäystä ja 12 poistoa
  1. 7 0
      ChangeLog
  2. 0 7
      test/AlphaNumberDecoratorTest.cc
  3. 0 3
      test/BitfieldManTest.cc
  4. 0 2
      test/DefaultBtContextTest.cc

+ 7 - 0
ChangeLog

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

+ 0 - 7
test/AlphaNumberDecoratorTest.cc

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

+ 0 - 3
test/BitfieldManTest.cc

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

+ 0 - 2
test/DefaultBtContextTest.cc

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