diff options
author | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-14 09:24:11 +0000 |
---|---|---|
committer | zimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4> | 2007-12-14 09:24:11 +0000 |
commit | 27e9fe99dcdd54aa906f7db6c2edf1f17b86c8da (patch) | |
tree | 17dff98738b367688bc413554d74be89c6c9d257 /tests/reuse.c | |
parent | 175719e83fb945722ec9ff2cceab1307d2fcd99a (diff) | |
download | mpfr-27e9fe99dcdd54aa906f7db6c2edf1f17b86c8da.tar.gz |
sin_cos.c, tsin_cos.c: fixed bug occurring when arguments overlap and
MPFR_FAST_COMPUTE_IF_SMALL_INPUT fails
reuse.c: improved output in case of error
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@5084 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'tests/reuse.c')
-rw-r--r-- | tests/reuse.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/reuse.c b/tests/reuse.c index ab259c0b8..37b3e5ce0 100644 --- a/tests/reuse.c +++ b/tests/reuse.c @@ -25,7 +25,7 @@ MA 02110-1301, USA. */ #include "mpfr-test.h" -#define DISP(s, t) {printf(s); mpfr_out_str(stdout, 10, 0, t, GMP_RNDN); } +#define DISP(s, t) {printf(s); mpfr_out_str(stdout, 2, 0, t, GMP_RNDN); } #define DISP2(s,t) {DISP(s,t); putchar('\n');} #define SPECIAL_MAX 12 @@ -481,7 +481,8 @@ test3a (int (*testfunc)(mpfr_ptr, mpfr_ptr, mpfr_srcptr, mp_rnd_t), testfunc (res1, res2, res1, rnd); if (mpfr_compare (res1, ref1) || mpfr_compare (res2, ref2)) { - printf ("Error for %s(a, b, a) for ", foo); + printf ("Error for %s(a, b, a) for rnd=%s, ", foo, + mpfr_print_rnd_mode (rnd)); DISP2("a=",ref3); DISP("expected (", ref1); DISP(",",ref2); DISP("), got (", res1); DISP(",", res2); printf(")\n"); |