diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-09-18 10:38:19 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2009-09-18 10:38:19 +0000 |
commit | 03628de7db52919ac197c33c2f259bb210970eb2 (patch) | |
tree | 8c298b72704ce9b5da0d3d0e0578f16fc9abc100 /tests/tmodf.c | |
parent | 834034534308f9daeea4a248f15ccf6fd1771323 (diff) | |
download | mpfr-03628de7db52919ac197c33c2f259bb210970eb2.tar.gz |
tests/tmodf.c: typo in error message.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@6451 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tmodf.c')
-rw-r--r-- | tests/tmodf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/tmodf.c b/tests/tmodf.c index 21ca26604..223042afc 100644 --- a/tests/tmodf.c +++ b/tests/tmodf.c @@ -42,7 +42,7 @@ check (const char *xis, const char *xfs, const char *xs, inexact = mpfr_modf (xi, xf, x, rnd_mode); if (mpfr_cmp_str1 (xi, xis)) { - printf ("mpfr_mof failed for x=%s, rnd=%s\n", + printf ("mpfr_modf failed for x=%s, rnd=%s\n", xs, mpfr_print_rnd_mode(rnd_mode)); printf ("got integer value: "); mpfr_out_str (stdout, 10, 0, xi, MPFR_RNDN); @@ -51,7 +51,7 @@ check (const char *xis, const char *xfs, const char *xs, } if (mpfr_cmp_str1 (xf, xfs)) { - printf ("mpfr_mof failed for x=%s, rnd=%s\n", + printf ("mpfr_modf failed for x=%s, rnd=%s\n", xs, mpfr_print_rnd_mode(rnd_mode)); printf ("got fractional value: "); mpfr_out_str (stdout, 10, 0, xf, MPFR_RNDN); @@ -60,7 +60,7 @@ check (const char *xis, const char *xfs, const char *xs, } if (inexact != expected_return) { - printf ("mpfr_mof failed for x=%s, rnd=%s\n", + printf ("mpfr_modf failed for x=%s, rnd=%s\n", xs, mpfr_print_rnd_mode(rnd_mode)); printf ("got return value: %d, expected %d\n", inexact, expected_return); exit (1); |