cbrt* tests: More tests.
[gnulib.git] / tests / test-cbrtf.c
index 53385c7..08c5b88 100644 (file)
 #include "signature.h"
 SIGNATURE_CHECK (cbrtf, float, (float));
 
+#include <float.h>
+
 #include "macros.h"
 
-volatile float x;
-float y;
+#define DOUBLE float
+#define L_(literal) literal##f
+#define MANT_DIG FLT_MANT_DIG
+#define CBRT cbrtf
+#define RANDOM randomf
+#include "test-cbrt.h"
 
 int
 main ()
@@ -36,5 +42,7 @@ main ()
   y = cbrtf (x);
   ASSERT (y >= 0.84343266f && y <= 0.84343270f);
 
+  test_function ();
+
   return 0;
 }