X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-floor1.c;h=81beac3e2d1fce240f946014cd45cbcf3eedd755;hb=1276a2c5f24c0c932426aca9c899fa524d2443f2;hp=bfb1f1dad25a753fd3ea8ec9bc137f52d713d8e7;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/tests/test-floor1.c b/tests/test-floor1.c index bfb1f1dad..81beac3e2 100644 --- a/tests/test-floor1.c +++ b/tests/test-floor1.c @@ -1,5 +1,5 @@ /* Test of rounding towards negative infinity. - Copyright (C) 2007-2011 Free Software Foundation, Inc. + Copyright (C) 2007-2014 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 (floor, double, (double)); #include "isnand-nolibm.h" #include "minus-zero.h" +#include "infinity.h" #include "nan.h" #include "macros.h" @@ -56,8 +57,8 @@ main (int argc, char **argv _GL_UNUSED) ASSERT (floor (-65536.0) == -65536.0); ASSERT (floor (-2.341e31) == -2.341e31); /* Infinite numbers. */ - ASSERT (floor (1.0 / 0.0) == 1.0 / 0.0); - ASSERT (floor (-1.0 / 0.0) == -1.0 / 0.0); + ASSERT (floor (Infinityd ()) == Infinityd ()); + ASSERT (floor (- Infinityd ()) == - Infinityd ()); /* NaNs. */ ASSERT (isnand (floor (NaNd ())));