projects
/
gnulib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cbrt* tests: More tests.
[gnulib.git]
/
tests
/
test-cbrtl.c
diff --git
a/tests/test-cbrtl.c
b/tests/test-cbrtl.c
index
5f1f0ae
..
79eddf3
100644
(file)
--- a/
tests/test-cbrtl.c
+++ b/
tests/test-cbrtl.c
@@
-23,10
+23,16
@@
#include "signature.h"
SIGNATURE_CHECK (cbrtl, long double, (long double));
#include "signature.h"
SIGNATURE_CHECK (cbrtl, long double, (long double));
+#include <float.h>
+
#include "macros.h"
#include "macros.h"
-volatile long double x;
-long double y;
+#define DOUBLE long double
+#define L_(literal) literal##L
+#define MANT_DIG DBL_MANT_DIG
+#define CBRT cbrtl
+#define RANDOM randoml
+#include "test-cbrt.h"
int
main ()
int
main ()
@@
-36,5
+42,7
@@
main ()
y = cbrtl (x);
ASSERT (y >= 0.8434326653L && y <= 0.8434326654L);
y = cbrtl (x);
ASSERT (y >= 0.8434326653L && y <= 0.8434326654L);
+ test_function ();
+
return 0;
}
return 0;
}