X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-ceilf1.c;h=208cf92b55540066247fbe921b6a10c8e70fd167;hb=c9451e3bdc651a742f06b46a450497e59bb5e006;hp=a77641f9bd88df01c47280caf9d879b480a24b57;hpb=4baf5c1e594a65a315fbd5094eaeeb11f4630d18;p=gnulib.git diff --git a/tests/test-ceilf1.c b/tests/test-ceilf1.c index a77641f9b..208cf92b5 100644 --- a/tests/test-ceilf1.c +++ b/tests/test-ceilf1.c @@ -1,5 +1,5 @@ /* Test of rounding towards positive infinity. - Copyright (C) 2007-2010 Free Software Foundation, Inc. + Copyright (C) 2007-2013 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,7 @@ SIGNATURE_CHECK (ceilf, float, (float)); #include "isnanf-nolibm.h" #include "minus-zero.h" +#include "infinity.h" #include "nan.h" #include "macros.h" @@ -46,9 +47,7 @@ main (int argc, char **argv _GL_UNUSED) /* Zero. */ ASSERT (my_ceilf (0.0f) == 0.0f); - ASSERT (!signbit (my_ceilf (0.0f))); ASSERT (my_ceilf (minus_zerof) == 0.0f); - ASSERT (!!signbit (minus_zerof) == !!signbit (my_ceilf (minus_zerof))); /* Positive numbers. */ ASSERT (my_ceilf (0.3f) == 1.0f); ASSERT (my_ceilf (0.7f) == 1.0f); @@ -71,8 +70,8 @@ main (int argc, char **argv _GL_UNUSED) ASSERT (my_ceilf (-65536.0f) == -65536.0f); ASSERT (my_ceilf (-2.341e31f) == -2.341e31f); /* Infinite numbers. */ - ASSERT (my_ceilf (1.0f / 0.0f) == 1.0f / 0.0f); - ASSERT (my_ceilf (-1.0f / 0.0f) == -1.0f / 0.0f); + ASSERT (my_ceilf (Infinityf ()) == Infinityf ()); + ASSERT (my_ceilf (- Infinityf ()) == - Infinityf ()); /* NaNs. */ ASSERT (isnanf (my_ceilf (NaNf ())));