X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=tests%2Ftest-ceilf1.c;h=208cf92b55540066247fbe921b6a10c8e70fd167;hb=2b7c2713dc823b924ec88f481be1671bf53b6da3;hp=c4581c6d2f63ea87c4d08d5c2fa151f444f89366;hpb=d60f3b0c6b0f93a601acd1cfd3923f94ca05abb0;p=gnulib.git diff --git a/tests/test-ceilf1.c b/tests/test-ceilf1.c index c4581c6d2..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-2011 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" @@ -69,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 ())));