mirror of https://github.com/aria2/aria2
Remove some left-over code from converting a test.
Checking once with CPPUNIT_ASSERT_MESSAGE should suffice.pull/336/head
parent
d5d21d20d7
commit
de37dbf13d
|
@ -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(),
|
||||
|
|
Loading…
Reference in New Issue