X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-floorf1.c;h=38d4a501860c2e3d41e070818f74facbfdbd86c6;hb=d1a06d87a70c6a1f0588a70c91c182f6873aae41;hp=55f45cfdc9616cec919a2edd21502b1c4ac24b16;hpb=1d7de2b4c343cfb0eb4d1171acf0877630e32151;p=gnulib.git diff --git a/tests/test-floorf1.c b/tests/test-floorf1.c index 55f45cfdc..38d4a5018 100644 --- a/tests/test-floorf1.c +++ b/tests/test-floorf1.c @@ -1,5 +1,5 @@ /* Test of rounding towards negative infinity. - Copyright (C) 2007-2010 Free Software Foundation, Inc. + Copyright (C) 2007-2011 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 (floorf, float, (float)); #include "isnanf-nolibm.h" #include "minus-zero.h" +#include "infinity.h" #include "nan.h" #include "macros.h" @@ -69,8 +70,8 @@ main (int argc, char **argv _GL_UNUSED) ASSERT (my_floorf (-65536.0f) == -65536.0f); ASSERT (my_floorf (-2.341e31f) == -2.341e31f); /* Infinite numbers. */ - ASSERT (my_floorf (1.0f / 0.0f) == 1.0f / 0.0f); - ASSERT (my_floorf (-1.0f / 0.0f) == -1.0f / 0.0f); + ASSERT (my_floorf (Infinityf ()) == Infinityf ()); + ASSERT (my_floorf (- Infinityf ()) == - Infinityf ()); /* NaNs. */ ASSERT (isnanf (my_floorf (NaNf ())));