* tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
(main): Add tests for [MX] shaded specification in POSIX.
* modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
(Depends-on): Add isnanl-nolibm.
2012-02-26 Bruno Haible <bruno@clisp.org>
+ 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.
+ * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
+ (Depends-on): Add isnanl-nolibm.
+
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.
Files:
tests/test-floorl-ieee.c
tests/minus-zero.h
+tests/infinity.h
+tests/nan.h
tests/macros.h
Depends-on:
fpucw
+isnanl-nolibm
float
signbit
#include <math.h>
#include "fpucw.h"
+#include "isnanl-nolibm.h"
#include "minus-zero.h"
+#include "infinity.h"
+#include "nan.h"
#include "macros.h"
int
ASSERT (!!signbit (floorl (-0.3L)) == !!signbit (minus_zerol));
ASSERT (!!signbit (floorl (-0.7L)) == !!signbit (minus_zerol));
+ /* [MX] shaded specification in POSIX. */
+
+ /* NaN. */
+ ASSERT (isnanl (floorl (NaNl ())));
+ /* Infinity. */
+ ASSERT (floorl (Infinityl ()) == Infinityl ());
+ ASSERT (floorl (- Infinityl ()) == - Infinityl ());
+
return 0;
}