diff options
Diffstat (limited to 'tests/tcbrt.c')
-rw-r--r-- | tests/tcbrt.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/tcbrt.c b/tests/tcbrt.c index 005ccc781..455289a8e 100644 --- a/tests/tcbrt.c +++ b/tests/tcbrt.c @@ -145,6 +145,12 @@ special (void) #define TEST_FUNCTION mpfr_cbrt #include "tgeneric.c" +static int +cube (mpfr_ptr a, mpfr_srcptr b, mpfr_rnd_t rnd_mode) +{ + return mpfr_pow_ui (a, b, 3, rnd_mode); +} + int main (void) { @@ -210,6 +216,7 @@ main (void) test_generic (MPFR_PREC_MIN, 200, 10); data_check ("data/cbrt", mpfr_cbrt, "mpfr_cbrt"); + bad_cases (mpfr_cbrt, cube, "mpfr_cbrt", 8, -256, 255, 4, 128, 800, 50); tests_end_mpfr (); return 0; |