Mercurial > hg > octave-jordi
changeset 18573:756e906bdfda stable
Fix %!test comparing NaN (single) to NaN (double) in cset 53ba52143af7.
* rand.cc (Frandg): Use single() to convert NaN to correct class in %!test.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 20 Mar 2014 08:56:39 -0700 |
parents | 53ba52143af7 |
children | ebd063b7b1c6 02a61d7c2de0 |
files | libinterp/corefcn/rand.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/rand.cc +++ b/libinterp/corefcn/rand.cc @@ -855,7 +855,7 @@ %! ## Test out-of-bounds values produce NaN w/old-style generators & floats %! randg ("seed", 1); %! result = randg ([-2 Inf], "single"); -%! assert (result, [NaN NaN]); +%! assert (result, single ([NaN NaN])); %!test %! if (__random_statistical_tests__)