diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-11-03 09:42:31 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2006-11-03 09:42:31 +0000 |
commit | 421a35523f8691a690758bf18478782ac0a2bdae (patch) | |
tree | 98eec170e785c035acefc68af02e3b539b9f7b3f /tests/tlngamma.c | |
parent | dd4682436b9f3c1aa471d8b69eedb9ae8d069550 (diff) | |
download | mpfr-421a35523f8691a690758bf18478782ac0a2bdae.tar.gz |
tlngamma.c: avoid useless mpfr_get_d.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4179 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tlngamma.c')
-rw-r--r-- | tests/tlngamma.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/tlngamma.c b/tests/tlngamma.c index 271b9f02a..d8ecb86ff 100644 --- a/tests/tlngamma.c +++ b/tests/tlngamma.c @@ -112,8 +112,11 @@ special (void) mpfr_set_str (x, CHECK_Y1, 10, GMP_RNDN); if (mpfr_cmp (y, x)) { - printf ("mpfr_lngamma("CHECK_X1") is wrong: expected %1.20e, got %1.20e\n", - mpfr_get_d (x, GMP_RNDN), mpfr_get_d (y, GMP_RNDN)); + printf ("mpfr_lngamma("CHECK_X1") is wrong:\n" + "expected "); + mpfr_print_binary (x); putchar ('\n'); + printf ("got "); + mpfr_print_binary (y); putchar ('\n'); exit (1); } @@ -124,8 +127,11 @@ special (void) mpfr_set_str (x, CHECK_Y2, 10, GMP_RNDN); if (mpfr_cmp (y, x)) { - printf ("mpfr_lngamma("CHECK_X2") is wrong: expected %1.20e, got %1.20e\n", - mpfr_get_d (x, GMP_RNDN), mpfr_get_d (y, GMP_RNDN)); + printf ("mpfr_lngamma("CHECK_X2") is wrong:\n" + "expected "); + mpfr_print_binary (x); putchar ('\n'); + printf ("got "); + mpfr_print_binary (y); putchar ('\n'); exit (1); } |