view modules/math-tests @ 16510:af909bf507e4

math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined. * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks. * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF, HUGE_VALL are defined. (numeric_equald): Renamed from numeric_equal. (numeric_equalf, numeric_equall): New functions. (main): Check also HUGE_VALF, HUGE_VALL. * modules/math-tests (Files): Add tests/macros.h. * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and HUGE_VALL.
author Bruno Haible <bruno@clisp.org>
date Tue, 28 Feb 2012 20:40:59 +0100
parents d7eed0b7ef06
children
line wrap: on
line source

Files:
tests/test-math.c
tests/macros.h

Depends-on:
math-c++-tests

configure.ac:

Makefile.am:
TESTS += test-math
check_PROGRAMS += test-math