diff options
author | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-14 08:56:31 +0000 |
---|---|---|
committer | thevenyp <thevenyp@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-14 08:56:31 +0000 |
commit | 8900bd7ee687149fe720836ec2e7e2e29ff93f91 (patch) | |
tree | 43b9fa7a5cbd5133c2c5f73656ccdf304538a8ab /tests/tfmod.c | |
parent | 2294fc9713fee66c03325b72cad7c8cd27baf951 (diff) | |
download | mpfr-8900bd7ee687149fe720836ec2e7e2e29ff93f91.tar.gz |
simplify error output code
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5080 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tfmod.c')
-rw-r--r-- | tests/tfmod.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/tfmod.c b/tests/tfmod.c index 82bf6e6d9..a01ca79c4 100644 --- a/tests/tfmod.c +++ b/tests/tfmod.c @@ -67,16 +67,16 @@ slow_fmod (mpfr_ptr r, mpfr_srcptr x, mpfr_srcptr y, mp_rnd_t rnd) static void test_failed (mpfr_t erem, mpfr_t grem, mpfr_t x, mpfr_t y, mp_rnd_t rnd) { - fprintf (stdout, "error : mpfr_fmod (r, x, y, rnd)\n x = "); + printf ("error : mpfr_fmod (r, x, y, rnd)\n x = "); mpfr_out_str (stdout, 10, 0, x, GMP_RNDD); - fprintf (stdout, "\n y = "); + printf ("\n y = "); mpfr_out_str (stdout, 10, 0, y, GMP_RNDD); - fprintf (stdout, "\nrnd = %s\n", mpfr_print_rnd_mode (rnd)); - fprintf (stdout, "\n expected r = "); + printf ("\nrnd = %s\n", mpfr_print_rnd_mode (rnd)); + printf ("\n expected r = "); mpfr_out_str (stdout, 10, 0, erem, GMP_RNDD); - fprintf (stdout, "\n got r = "); + printf ("\n got r = "); mpfr_out_str (stdout, 10, 0, grem, GMP_RNDD); - fprintf (stdout, "\n"); + putchar ('\n'); mpfr_clears (erem, grem, x, y, (void *) 0); exit (1); @@ -112,7 +112,7 @@ special (void) test_failed (r, x, x, y, GMP_RNDN); if (inexact) { - fprintf (stdout, "error : mpfr_fmod (NaN, NaN) should be exact\n"); + printf ("error : mpfr_fmod (NaN, NaN) should be exact\n"); goto error; } @@ -123,7 +123,7 @@ special (void) test_failed (r, x, x, y, GMP_RNDN); if (inexact) { - fprintf (stdout, "error : mpfr_fmod (NaN, +0) should be exact\n"); + printf ("error : mpfr_fmod (NaN, +0) should be exact\n"); goto error; } @@ -134,7 +134,7 @@ special (void) test_failed (r, x, x, y, GMP_RNDN); if (inexact) { - fprintf (stdout, "error : mpfr_fmod (3.1415, NaN) should be exact\n"); + printf ("error : mpfr_fmod (3.1415, NaN) should be exact\n"); goto error; } @@ -145,7 +145,7 @@ special (void) test_failed (r, x, x, y, GMP_RNDN); if (inexact) { - fprintf (stdout, "error : mpfr_fmod (3.1415, +Inf) should be exact\n"); + printf ("error : mpfr_fmod (3.1415, +Inf) should be exact\n"); goto error; } |