]> Savannah Git Hosting - gnulib.git/commitdiff
ceilf-ieee tests: More tests.
authorBruno Haible <bruno@clisp.org>
Sun, 26 Feb 2012 13:25:39 +0000 (14:25 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 26 Feb 2012 13:25:39 +0000 (14:25 +0100)
* tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnanf-nolibm.

ChangeLog
modules/ceilf-ieee-tests
tests/test-ceilf-ieee.c

index 50428a0e0507258d351bff2de408d8b9666bb51b..e2381312675bf4c3b74f08d8bb76d1801b9ce849 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2012-02-26  Bruno Haible  <bruno@clisp.org>
 
+       ceilf-ieee tests: More tests.
+       * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
+       (main): Add tests for [MX] shaded specification in POSIX.
+       * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
+       (Depends-on): Add isnanf-nolibm.
+
        floorl-ieee tests: More tests.
        * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
        (main): Add tests for [MX] shaded specification in POSIX.
index 4b8766794843be814ecfe669e57ff5ba29f691c8..33e7be7906470a4ed94595b0ad4f5f95da9c53d9 100644 (file)
@@ -1,9 +1,12 @@
 Files:
 tests/test-ceilf-ieee.c
 tests/minus-zero.h
+tests/infinity.h
+tests/nan.h
 tests/macros.h
 
 Depends-on:
+isnanf-nolibm
 float
 signbit
 
index c94c856c8da08576c5baea1ccdfe03e8e8c64e31..63de1318b8f5796b943cf2eebe8a37084c9e3989 100644 (file)
 
 #include <math.h>
 
+#include "isnanf-nolibm.h"
 #include "minus-zero.h"
+#include "infinity.h"
+#include "nan.h"
 #include "macros.h"
 
 /* If IEEE compliance was not requested, the ICC compiler inlines its
@@ -52,5 +55,13 @@ main (int argc, char **argv _GL_UNUSED)
   ASSERT (!!signbit (my_ceilf (-0.3f)) == !!signbit (minus_zerof));
   ASSERT (!!signbit (my_ceilf (-0.7f)) == !!signbit (minus_zerof));
 
+  /* [MX] shaded specification in POSIX.  */
+
+  /* NaN.  */
+  ASSERT (isnanf (ceilf (NaNf ())));
+  /* Infinity.  */
+  ASSERT (ceilf (Infinityf ()) == Infinityf ());
+  ASSERT (ceilf (- Infinityf ()) == - Infinityf ());
+
   return 0;
 }