diff options
author | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-01-09 16:00:54 +0000 |
---|---|---|
committer | pelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4> | 2004-01-09 16:00:54 +0000 |
commit | 21249c6b35c1ef09485172cb22598a1c78a2d151 (patch) | |
tree | c130d87f19bfd8807b624a985c6bf34a45499835 /tests/tcbrt.c | |
parent | 0f61bc59c3dedca12d28706db41b52d5da474edb (diff) | |
download | mpfr-21249c6b35c1ef09485172cb22598a1c78a2d151.tar.gz |
Update the tests to reduce the use of floats.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2620 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcbrt.c')
-rw-r--r-- | tests/tcbrt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/tcbrt.c b/tests/tcbrt.c index d6ee3f034..e1cfa8aef 100644 --- a/tests/tcbrt.c +++ b/tests/tcbrt.c @@ -1,6 +1,6 @@ /* Test file for mpfr_cbrt. -Copyright 2002, 2003 Free Software Foundation, Inc. +Copyright 2002, 2003, 2004 Free Software Foundation, Inc. This file is part of the MPFR Library. @@ -38,7 +38,7 @@ main (void) mpfr_set_prec (x, 53); mpfr_set_str (x, "8.39005285514734966412e-01", 10, GMP_RNDN); mpfr_cbrt (x, x, GMP_RNDN); - if (mpfr_get_d1 (x) != 9.43166207799662426048e-01) + if (mpfr_cmp_str1(x, "9.43166207799662426048e-01")) { printf ("Error (1)\n"); exit (1); |