diff options
author | hanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-11-21 15:21:39 +0000 |
---|---|---|
committer | hanrot <hanrot@280ebfd0-de03-0410-8827-d642c229c3f4> | 2000-11-21 15:21:39 +0000 |
commit | 01b2aebd57955fa9514550221f25cb684a792d85 (patch) | |
tree | fafb151cbbdfb4ab3394ca5ba1f8b1cfa3a2bc4c /tests/tcan_round.c | |
parent | ebb0a24940eb551ce03eb361910c423fee7d6499 (diff) | |
download | mpfr-01b2aebd57955fa9514550221f25cb684a792d85.tar.gz |
Infinis, premiere tentative (tests)
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@794 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tcan_round.c')
-rw-r--r-- | tests/tcan_round.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/tcan_round.c b/tests/tcan_round.c index db42e6668..f32b68de0 100644 --- a/tests/tcan_round.c +++ b/tests/tcan_round.c @@ -35,6 +35,14 @@ int main() if (mpfr_can_round(x, 54, GMP_RNDZ, GMP_RNDZ, 53) != 0) { fprintf(stderr, "Error in mpfr_can_round\n"); exit(1); } + + mpfr_set_str_raw(x, "-Inf"); + if (mpfr_can_round(x, 2000, GMP_RNDZ, GMP_RNDZ, 2000) != 0) { + fprintf(stderr, "Error in mpfr_can_round\n"); exit(1); + } mpfr_clear(x); return 0; } + + + |