X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;ds=inline;f=tests%2Ftest-ceill.c;h=8f83cf774ca4f11bbc6b54383e3a37d1575cc596;hb=eaa61c1d42dc605654a0e3073ac693a50bf1d2b8;hp=f627a9e299c577334f69360a9655a078709b0681;hpb=5dad7705e059bd0ce249a736b5af02dd66824ae0;p=gnulib.git diff --git a/tests/test-ceill.c b/tests/test-ceill.c index f627a9e29..8f83cf774 100644 --- a/tests/test-ceill.c +++ b/tests/test-ceill.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 @@ -28,6 +28,7 @@ SIGNATURE_CHECK (ceill, long double, (long double)); #include "fpucw.h" #include "isnanl-nolibm.h" #include "minus-zero.h" +#include "infinity.h" #include "nan.h" #include "macros.h" @@ -40,9 +41,7 @@ main () /* Zero. */ ASSERT (ceill (0.0L) == 0.0L); - ASSERT (!signbit (ceill (0.0L))); ASSERT (ceill (minus_zerol) == 0.0L); - ASSERT (!!signbit (minus_zerol) == !!signbit (ceill (minus_zerol))); /* Positive numbers. */ ASSERT (ceill (0.3L) == 1.0L); ASSERT (ceill (0.7L) == 1.0L); @@ -65,8 +64,8 @@ main () ASSERT (ceill (-65536.0L) == -65536.0L); ASSERT (ceill (-2.341e31L) == -2.341e31L); /* Infinite numbers. */ - ASSERT (ceill (1.0L / 0.0L) == 1.0L / 0.0L); - ASSERT (ceill (-1.0L / 0.0L) == -1.0L / 0.0L); + ASSERT (ceill (Infinityl ()) == Infinityl ()); + ASSERT (ceill (- Infinityl ()) == - Infinityl ()); /* NaNs. */ ASSERT (isnanl (ceill (NaNl ())));