Modify the random distributions test to verify to 2 more decimal
authorBen Pfaff <blp@gnu.org>
Tue, 4 Jul 2006 04:17:50 +0000 (04:17 +0000)
committerBen Pfaff <blp@gnu.org>
Tue, 4 Jul 2006 04:17:50 +0000 (04:17 +0000)
commitdded8ef3520bdddc637bd3872ee3092a08efdb9c
treee501178b620ed614b6f1f91fb2ffd09d80e55205
parent9711bd03dcc19d39c08e0d5bc52ff909f592db6b
Modify the random distributions test to verify to 2 more decimal
places of accuracy, but to allow +/- 1 units in the last (tested)
place.  This allows the test to pass on machines or with compilers
whose calculated values are off by epsilon from the expected results.
Because of the way the test is constructed, this was quite common and
often caused gratuitous test failures.

This is patch #5215, tested by Jason Stover and John Darrington.
18 files changed:
tests/ChangeLog
tests/expressions/randist.sh
tests/expressions/randist/beta.out
tests/expressions/randist/cauchy.out
tests/expressions/randist/chisq.out
tests/expressions/randist/compare.pl [new file with mode: 0755]
tests/expressions/randist/exp.out
tests/expressions/randist/f.out
tests/expressions/randist/gamma.out
tests/expressions/randist/laplace.out
tests/expressions/randist/lnormal.out
tests/expressions/randist/logistic.out
tests/expressions/randist/normal.out
tests/expressions/randist/pareto.out
tests/expressions/randist/randist.pl
tests/expressions/randist/t.out
tests/expressions/randist/uniform.out
tests/expressions/randist/weibull.out