Przeglądaj źródła

Remove some left-over code from converting a test.

Checking once with CPPUNIT_ASSERT_MESSAGE should suffice.
Nils Maier 10 lat temu
rodzic
commit
de37dbf13d
1 zmienionych plików z 0 dodań i 4 usunięć
  1. 0 4
      test/UtilTest.cc

+ 0 - 4
test/UtilTest.cc

@@ -1978,10 +1978,6 @@ void UtilTest::testGenerateRandomData()
     }
   }
   CPPUNIT_ASSERT_MESSAGE("Should see all kinds of bytes", counts.size() == 256);
-  if (counts.size() != 256) {
-    throw std::domain_error(
-        "Would have expected to see at one of each possible byte value!");
-  }
   double sum = accumulate(
     counts.begin(),
     counts.end(),