cbrt* tests: More tests.
[gnulib.git] / tests / test-cbrt.c
index e1decb5..562c08c 100644 (file)
 #include "signature.h"
 SIGNATURE_CHECK (cbrt, double, (double));
 
+#include <float.h>
+
 #include "macros.h"
 
-volatile double x;
-double y;
+#define DOUBLE double
+#define L_(literal) literal
+#define MANT_DIG DBL_MANT_DIG
+#define CBRT cbrt
+#define RANDOM randomd
+#include "test-cbrt.h"
 
 int
 main ()
@@ -36,5 +42,7 @@ main ()
   y = cbrt (x);
   ASSERT (y >= 0.8434326653 && y <= 0.8434326654);
 
+  test_function ();
+
   return 0;
 }