cbrt* tests: More tests.
[gnulib.git] / tests / test-cbrtl.c
index 5f1f0ae..79eddf3 100644 (file)
 #include "signature.h"
 SIGNATURE_CHECK (cbrtl, long double, (long double));
 
+#include <float.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 ()
@@ -36,5 +42,7 @@ main ()
   y = cbrtl (x);
   ASSERT (y >= 0.8434326653L && y <= 0.8434326654L);
 
+  test_function ();
+
   return 0;
 }