diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-06-05 00:13:04 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2015-06-05 00:13:04 +0000 |
commit | 8f770e06527128bb0a3efde0c5e5016aef1dd061 (patch) | |
tree | 7a33de988b2fb989b5a842e74a20b1f6e2475a3e /tests/tpow_all.c | |
parent | 59cf54fa2854427dd6a1c1771a64436b33298b68 (diff) | |
download | mpfr-8f770e06527128bb0a3efde0c5e5016aef1dd061.tar.gz |
[tests/tpow_all.c] Better flags output in error message.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9509 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/tpow_all.c')
-rw-r--r-- | tests/tpow_all.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/tpow_all.c b/tests/tpow_all.c index 128cb68ba..5deecd732 100644 --- a/tests/tpow_all.c +++ b/tests/tpow_all.c @@ -107,16 +107,19 @@ cmpres (int spx, const void *px, const char *sy, mpfr_rnd_t rnd, printf ("Expected "); if (z1 == NULL) { - printf ("pure FP value, flags = %u\n", flags1); + printf ("pure FP value, flags ="); + flags_out (flags1); } else { mpfr_out_str (stdout, 16, 0, z1, MPFR_RNDN); - printf (", inex = %d, flags = %u\n", SIGN (inex1), flags1); + printf (", inex = %d,\n flags =", SIGN (inex1)); + flags_out (flags1); } printf ("Got "); mpfr_out_str (stdout, 16, 0, z2, MPFR_RNDN); - printf (", inex = %d, flags = %u\n", SIGN (inex2), flags2); + printf (", inex = %d,\n flags =", SIGN (inex2)); + flags_out (flags2); if (all_cmpres_errors != 0) all_cmpres_errors = -1; else |