diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-01-19 16:06:34 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-01-19 16:06:34 +0000 |
commit | 4ece9e5fcd75d9367f580f813662d98ce51b085a (patch) | |
tree | edaf7a112bd25731d2f05579f512aa7fdaafd7a4 /tests/tset_d.c | |
parent | 31343e01a5c0cdea68f2042ef1a34a0bc50ac17a (diff) | |
download | mpfr-4ece9e5fcd75d9367f580f813662d98ce51b085a.tar.gz |
Update tests to remove the use of double when possible.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2635 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tset_d.c')
-rw-r--r-- | tests/tset_d.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/tset_d.c b/tests/tset_d.c index e5ac12d6b..865e5d071 100644 --- a/tests/tset_d.c +++ b/tests/tset_d.c @@ -1,6 +1,6 @@ /* Test file for mpfr_set_d and mpfr_get_d. -Copyright 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. +Copyright 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of the MPFR Library. @@ -61,20 +61,23 @@ main (int argc, char *argv[]) mpfr_set_d (x, 5.0, GMP_RNDN); if (mpfr_cmp_ui (x, 4)) { - printf ("Error in tset_d: got %g instead of 4.0\n", mpfr_get_d1 (x)); + printf ("Error in tset_d: expected 4.0, got "); + mpfr_print_binary (x); putchar('\n'); exit (1); } mpfr_set_d (x, -5.0, GMP_RNDN); if (mpfr_cmp_si (x, -4)) { - printf ("Error in tset_d: got %g instead of -4.0\n", mpfr_get_d1 (x)); + printf ("Error in tset_d: expected -4.0, got "); + mpfr_print_binary (x); putchar('\n'); exit (1); } mpfr_set_d (x, 9.84891017624509146344e-01, GMP_RNDU); if (mpfr_cmp_ui (x, 1)) { - printf ("Error in tset_d: got %g instead of 1.0\n", mpfr_get_d1 (x)); + printf ("Error in tset_d: expected 1.0, got "); + mpfr_print_binary (x); putchar('\n'); exit (1); } |