mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-09-01 02:34:55 +00:00
log10l tests: More tests.
* modules/log10l-tests (Files): Add tests/test-log10l.h, tests/minus-zero.h, tests/randoml.c. (Makefile.am): Add randoml.c to test_log10l_SOURCES. * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h. (main): Invoke test_function.
This commit is contained in:
@@ -1,5 +1,12 @@
|
||||
2012-03-31 Bruno Haible <bruno@clisp.org>
|
||||
|
||||
log10l tests: More tests.
|
||||
* modules/log10l-tests (Files): Add tests/test-log10l.h,
|
||||
tests/minus-zero.h, tests/randoml.c.
|
||||
(Makefile.am): Add randoml.c to test_log10l_SOURCES.
|
||||
* tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
|
||||
(main): Invoke test_function.
|
||||
|
||||
log10f tests: More tests.
|
||||
* modules/log10f-tests (Files): Add tests/test-log10.h,
|
||||
tests/minus-zero.h, tests/randomf.c.
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
Files:
|
||||
tests/test-log10l.c
|
||||
tests/test-log10.h
|
||||
tests/minus-zero.h
|
||||
tests/signature.h
|
||||
tests/macros.h
|
||||
tests/randoml.c
|
||||
|
||||
Depends-on:
|
||||
fpucw
|
||||
@@ -11,4 +14,5 @@ configure.ac:
|
||||
Makefile.am:
|
||||
TESTS += test-log10l
|
||||
check_PROGRAMS += test-log10l
|
||||
test_log10l_SOURCES = test-log10l.c randoml.c
|
||||
test_log10l_LDADD = $(LDADD) @LOG10L_LIBM@
|
||||
|
||||
+13
-2
@@ -23,11 +23,20 @@
|
||||
#include "signature.h"
|
||||
SIGNATURE_CHECK (log10l, long double, (long double));
|
||||
|
||||
#include <float.h>
|
||||
|
||||
#include "minus-zero.h"
|
||||
#include "fpucw.h"
|
||||
#include "macros.h"
|
||||
|
||||
volatile long double x;
|
||||
long double y;
|
||||
#define DOUBLE long double
|
||||
#define HUGEVAL HUGE_VALL
|
||||
#define MANT_DIG LDBL_MANT_DIG
|
||||
#define L_(literal) literal##L
|
||||
#define MINUS_ZERO minus_zerol
|
||||
#define LOG10 log10l
|
||||
#define RANDOM randoml
|
||||
#include "test-log10.h"
|
||||
|
||||
int
|
||||
main ()
|
||||
@@ -41,5 +50,7 @@ main ()
|
||||
y = log10l (x);
|
||||
ASSERT (y >= -0.2218487497L && y <= -0.2218487496L);
|
||||
|
||||
test_function ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user