]> Savannah Git Hosting - gnulib.git/commit
totalorder* tests: Strengthen tests.
authorBruno Haible <bruno@clisp.org>
Wed, 17 Apr 2024 23:34:02 +0000 (01:34 +0200)
committerBruno Haible <bruno@clisp.org>
Wed, 17 Apr 2024 23:34:02 +0000 (01:34 +0200)
commit30d5b101cc83d1e518c0d4cd2ea43d2817a7a849
tree3359305cb5bb91b48c8cf3444bffb9c1f985305e
parent3cdd0b362f409c159c3b73de2cb8de6e7d54e21b
totalorder* tests: Strengthen tests.

* tests/test-totalorder.h: Include <math.h>.
(positive_NaN_with_payload, negative_NaN_with_payload): New functions.
(main): Test quiet NaNs of each sign with different payload.
* tests/test-totalorder.c (TOTALORDER_POSITIVE_NAN,
TOTALORDER_NEGATIVE_NAN): Remove macros.
(TOTALORDER_SETPAYLOAD): New macro.
* tests/test-totalorderf.c (TOTALORDER_POSITIVE_NAN,
TOTALORDER_NEGATIVE_NAN): Remove macros.
(TOTALORDER_SETPAYLOAD): New macro.
* tests/test-totalorderl.c (TOTALORDER_POSITIVE_NAN,
TOTALORDER_NEGATIVE_NAN): Remove macros.
(TOTALORDER_SETPAYLOAD): New macro.
* modules/totalorder-tests (Depends-on): Add setpayload.
(Makefile.am): Link test-totalorder with $(SETPAYLOAD_LIBM).
* modules/totalorderf-tests (Depends-on): Add setpayloadf.
(Makefile.am): Link test-totalorderf with $(SETPAYLOADF_LIBM).
* modules/totalorderl-tests (Depends-on): Add setpayloadl.
(Makefile.am): Link test-totalorderl with $(SETPAYLOADL_LIBM).
ChangeLog
modules/totalorder-tests
modules/totalorderf-tests
modules/totalorderl-tests
tests/test-totalorder.c
tests/test-totalorder.h
tests/test-totalorderf.c
tests/test-totalorderl.c