* tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnand-nolibm.
2012-02-26 Bruno Haible <bruno@clisp.org>
+ floor-ieee tests: More tests.
+ * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
+ (main): Add tests for [MX] shaded specification in POSIX.
+ * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
+ (Depends-on): Add isnand-nolibm.
+
floorf-ieee tests: More tests.
* tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
Files:
tests/test-floor-ieee.c
tests/minus-zero.h
+tests/infinity.h
+tests/nan.h
tests/macros.h
Depends-on:
+isnand-nolibm
float
signbit
#include <math.h>
+#include "isnand-nolibm.h"
#include "minus-zero.h"
+#include "infinity.h"
+#include "nan.h"
#include "macros.h"
int
ASSERT (!!signbit (floor (-0.3)) == !!signbit (minus_zerod));
ASSERT (!!signbit (floor (-0.7)) == !!signbit (minus_zerod));
+ /* [MX] shaded specification in POSIX. */
+
+ /* NaN. */
+ ASSERT (isnand (floor (NaNd ())));
+ /* Infinity. */
+ ASSERT (floor (Infinityd ()) == Infinityd ());
+ ASSERT (floor (- Infinityd ()) == - Infinityd ());
+
return 0;
}