summaryrefslogtreecommitdiff
path: root/tests/tset_si.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-30 13:37:37 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2001-11-30 13:37:37 +0000
commit538b931a3b879b73798dcbe4fd9a979a95174cd4 (patch)
tree713fa59db50eadb7a0886a390baaebda16331f8a /tests/tset_si.c
parent2a906d4c9bbb339a55823e51fa92e2e78fdbb917 (diff)
downloadmpfr-538b931a3b879b73798dcbe4fd9a979a95174cd4.tar.gz
start tests with precision 2 instead of 1
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@1606 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tset_si.c')
-rw-r--r--tests/tset_si.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/tset_si.c b/tests/tset_si.c
index a5da95439..e84b633b3 100644
--- a/tests/tset_si.c
+++ b/tests/tset_si.c
@@ -74,14 +74,14 @@ main (int argc, char *argv[])
}
}
- mpfr_set_prec (x, 1);
+ mpfr_set_prec (x, 2);
if (mpfr_set_si (x, 5, GMP_RNDZ) >= 0)
{
fprintf (stderr, "Wrong inexact flag for x=5, rnd=GMP_RNDZ\n");
exit (1);
}
- mpfr_set_prec (x, 1);
+ mpfr_set_prec (x, 2);
if (mpfr_set_si (x, -5, GMP_RNDZ) <= 0)
{
fprintf (stderr, "Wrong inexact flag for x=-5, rnd=GMP_RNDZ\n");
@@ -106,18 +106,18 @@ main (int argc, char *argv[])
exit(1);
}
- mpfr_set_prec(x, 1);
+ mpfr_set_prec(x, 2);
inex = mpfr_set_si(x, 33096, GMP_RNDU);
- if (mpfr_get_d(x) != 65536.0 || inex <= 0)
+ if (mpfr_get_d(x) != 49152.0 || inex <= 0)
{
- fprintf(stderr, "Error in mpfr_set_si, expected 65536, got %lu, inex %d\n",
+ fprintf(stderr, "Error in mpfr_set_si, expected 49152, got %lu, inex %d\n",
(unsigned long) mpfr_get_d(x), inex);
exit(1);
}
inex = mpfr_set_ui(x, 33096, GMP_RNDU);
- if (mpfr_get_d(x) != 65536.0)
+ if (mpfr_get_d(x) != 49152.0)
{
- fprintf(stderr, "Error in mpfr_set_ui, expected 65536, got %lu, inex %d\n",
+ fprintf(stderr, "Error in mpfr_set_ui, expected 49152, got %lu, inex %d\n",
(unsigned long) mpfr_get_d(x), inex);
exit(1);
}