summaryrefslogtreecommitdiff
path: root/tests/tsqrt.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/tsqrt.c')
-rw-r--r--tests/tsqrt.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/tsqrt.c b/tests/tsqrt.c
index 5ae89e7ab..bd161faa3 100644
--- a/tests/tsqrt.c
+++ b/tests/tsqrt.c
@@ -68,8 +68,8 @@ check4 (double a, mp_rnd_t rnd_mode, char *Q)
{
printf("mpfr_sqrt failed for a=%1.20e, rnd_mode=%s\n",
a, mpfr_print_rnd_mode(rnd_mode));
- printf("expected "); mpfr_print_binary(res); putchar('\n');
- printf("got "); mpfr_print_binary(q); putchar('\n');
+ printf("expected "); mpfr_print_binary(res); puts ("");
+ printf("got "); mpfr_print_binary(q); puts ("");
mpfr_clear(q); mpfr_clear(res);
exit(1);
}
@@ -175,7 +175,7 @@ special (void)
if (mpfr_get_d1 (x) != 1.5)
{
fprintf (stderr, "Error: sqrt(1+ulp(1), up) should give 1.5 (prec=%u)\n", (unsigned) p);
- printf ("got "); mpfr_print_binary (x); putchar ('\n');
+ printf ("got "); mpfr_print_binary (x); puts ("");
exit (1);
}
}
@@ -243,7 +243,7 @@ check_inexact (mp_prec_t p)
printf ("x=");
mpfr_print_binary (x);
printf (" rnd=%s\n", mpfr_print_rnd_mode (rnd));
- printf ("y="); mpfr_print_binary (y); putchar ('\n');
+ printf ("y="); mpfr_print_binary (y); puts ("");
exit (1);
}
mpfr_clear (x);