# HG changeset patch # User Rik # Date 1395330999 25200 # Node ID 756e906bdfdab7f87761e546924e7866205c84f5 # Parent 53ba52143af737bd188802d3cefd63b87b1ef5aa Fix %!test comparing NaN (single) to NaN (double) in cset 53ba52143af7. * rand.cc (Frandg): Use single() to convert NaN to correct class in %!test. diff -r 53ba52143af7 -r 756e906bdfda libinterp/corefcn/rand.cc --- a/libinterp/corefcn/rand.cc Wed Mar 19 20:46:39 2014 -0400 +++ b/libinterp/corefcn/rand.cc Thu Mar 20 08:56:39 2014 -0700 @@ -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__)