# HG changeset patch # User Tatsuro MATSUOKA # Date 1218181677 -7200 # Node ID 8d0f0e69164404781bdd1552e150068f7757fd52 # Parent a0d567862eb80bafbfd2fb153c67571dfeca985f fix failing test for randp diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2008-08-08 Tatsuro MATSUOKA + + * A patch fntests for rand.cc for octave for windows (cygwin, mingw ,msvc) + 2008-08-01 Francesco Potorti * graphics.cc (axes::properties::properties, diff --git a/src/DLD-FUNCTIONS/rand.cc b/src/DLD-FUNCTIONS/rand.cc --- a/src/DLD-FUNCTIONS/rand.cc +++ b/src/DLD-FUNCTIONS/rand.cc @@ -950,7 +950,7 @@ %!test %! % Test fixed state %! randp("seed",1); -%! assert(randp(1e9,1,6),[1000006208 1000012224 999981120 999963520 999963072 999981440]) +%! assert(randp(1e9,1,6),[1000006208 1000012224 999981120 999963520 999963072 999981440]],1e-6)) %!test %! if (__random_statistical_tests__) %! % statistical tests may fail occasionally.