On Thu, Mar 08, 2007 at 05:25:48PM -0500, Tom Moertel wrote:
> Important: This test suite relies upon a number of randomized tests
> and statistical inferences. As a result, there is a small
> probability (about 1 in 200) that some part of the suite will fail
> even if everything is working properly. Therefore, if a test
> fails, re-run the test suite to determine whether the supposed
> problem is real or just a rare instance of the Fates poking fun at
> you.
I have a similar problem with Net::Random.
I test the randomness of the data it produces in a half-arsed kind of
way, but really what it should be testing is that the output is
distributed the same as the input it gets from the online randomness
sources. The problem with *that* is that:
I can't think off the top of my head how to do that;
It would require a lot of data, and the online sources use rationing
I suppose I need a fake source of evenly distributed unpredictable data
(a chunk from the middle of a bzip2 file would do) - and to test the
test, I suppose I need a fake source of unevenly distributed data as
well :-)
Suggestions on how to implement the test would be *most* welcome.
--
David Cantrell | A machine for turning tea into grumpiness
I think the most difficult moment that anyone could face is seeing
their domestic servants, whether maid or drivers, run away
-- Abdul Rahman Al-Sheikh, writing at
http://www.arabnews.com/?article=38558