summaryrefslogtreecommitdiff
path: root/tests/turandom.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2010-09-15 07:47:50 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2010-09-15 07:47:50 +0000
commit615a1b94674c08b91f343d1c89ae24bd1870abfc (patch)
tree683e4b7c3d3c47db1d608e3d3ff93f33fb62392b /tests/turandom.c
parent57790a672ea43d344141935e08cd6eb3f10a5ed6 (diff)
downloadmpfr-615a1b94674c08b91f343d1c89ae24bd1870abfc.tar.gz
replaced mpfr_printf in tests by calls to mpfr_out_str
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7139 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/turandom.c')
-rw-r--r--tests/turandom.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/turandom.c b/tests/turandom.c
index 77da1e4ef..61fa85911 100644
--- a/tests/turandom.c
+++ b/tests/turandom.c
@@ -168,13 +168,17 @@ bug20100914 (void)
the same values on a 64-bit computer */
if (mpfr_cmp_str1 (x, "0.196152") != 0)
{
- mpfr_printf ("Error in bug20100914, got %Rf, expected 0.196152\n", x);
+ printf ("Error in bug20100914, expected 0.196152, got ");
+ mpfr_out_str (stdout, 10, 0, x, MPFR_RNDN);
+ printf ("\n");
exit (1);
}
mpfr_urandom (x, s, MPFR_RNDN);
if (mpfr_cmp_str1 (x, "0.414497") != 0)
{
- mpfr_printf ("Error in bug20100914, got %Rf, expected 0.414497\n", x);
+ printf ("Error in bug20100914, expected 0.414497, got ");
+ mpfr_out_str (stdout, 10, 0, x, MPFR_RNDN);
+ printf ("\n");
exit (1);
}
mpfr_clear (x);