Mercurial > hg > octave-shane > gnulib-hg
diff tests/test-round1.c @ 9646:a113e473cc98
Rename isnan, applicable to 'double' only, to isnand.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sat, 26 Jan 2008 15:17:58 +0100 |
parents | 96fea5b2eb11 |
children | 7f3ed6b093be |
line wrap: on
line diff
--- a/tests/test-round1.c +++ b/tests/test-round1.c @@ -1,5 +1,5 @@ /* Test of rounding to nearest, breaking ties away from zero. - Copyright (C) 2007 Free Software Foundation, Inc. + Copyright (C) 2007-2008 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -25,6 +25,8 @@ #include <stdio.h> #include <stdlib.h> +#include "isnand.h" + #define ASSERT(expr) \ do \ { \ @@ -84,7 +86,7 @@ ASSERT (round (1.0 / 0.0) == 1.0 / 0.0); ASSERT (round (-1.0 / 0.0) == -1.0 / 0.0); /* NaNs. */ - ASSERT (isnan (round (NaN ()))); + ASSERT (isnand (round (NaN ()))); return 0; }