diff options
-rw-r--r-- | tests/tget_d.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tget_d.c b/tests/tget_d.c index 5b7667275..e0ba35025 100644 --- a/tests/tget_d.c +++ b/tests/tget_d.c @@ -107,7 +107,11 @@ check_inf_nan (void) mpfr_set_nan (x); d = mpfr_get_d (x, MPFR_RNDZ); - MPFR_ASSERTN (DOUBLE_ISNAN (d)); + if (!DOUBLE_ISNAN (d)) + { + printf ("Error in check_inf_nan() for NaN, got %.17g\n", d); + exit (1); + } mpfr_clear (x); #endif |