summaryrefslogtreecommitdiff
path: root/tests/tout_str.c
diff options
context:
space:
mode:
authorpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-21 15:27:35 +0000
committerpelissip <pelissip@280ebfd0-de03-0410-8827-d642c229c3f4>2003-11-21 15:27:35 +0000
commit41d7b44241b63a451c3e664bdd9a640a4c255291 (patch)
tree6a82613a3cf86ab03825e93e2987ad51e8ab58a6 /tests/tout_str.c
parent1cd11b42766c57e2118aac4ffe5219fac353904d (diff)
downloadmpfr-41d7b44241b63a451c3e664bdd9a640a4c255291.tar.gz
+ Add new internal function: mpfr_check.
+ Add the corresponding test file. + Translate mpfr_set_d to mpfr_set_str / mpfr_set_ui in the tests for portability reasons. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@2562 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tout_str.c')
-rw-r--r--tests/tout_str.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/tout_str.c b/tests/tout_str.c
index d3c639397..37b7e71f7 100644
--- a/tests/tout_str.c
+++ b/tests/tout_str.c
@@ -61,7 +61,7 @@ check_large (void)
/* checks rounding of negative numbers */
mpfr_set_prec (x, 7);
- mpfr_set_d (x, -11.5, GMP_RNDN);
+ mpfr_set_str (x, "-11.5", 10, GMP_RNDN);
s = mpfr_get_str (NULL, &e, 10, 2, x, GMP_RNDD);
if (strcmp (s, "-12"))
{