From 8900bd7ee687149fe720836ec2e7e2e29ff93f91 Mon Sep 17 00:00:00 2001 From: thevenyp Date: Fri, 14 Dec 2007 08:56:31 +0000 Subject: simplify error output code git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5080 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/tfmod.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'tests/tfmod.c') 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; } -- cgit v1.2.1