summaryrefslogtreecommitdiff
path: root/tests/read_data.c
diff options
context:
space:
mode:
authorthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-12-09 13:39:42 +0000
committerthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2008-12-09 13:39:42 +0000
commit098c5829b8a55088c61638a614691bf126d9b40e (patch)
tree2e560bf93c2cea72d29a2c6e9822b6c7d97a08ba /tests/read_data.c
parent3ed77201d0ebfcc419aeadeafc82e4f1df5a14c7 (diff)
downloadmpc-098c5829b8a55088c61638a614691bf126d9b40e.tar.gz
tests/arg.dat: replaced ? by expected ternary flags.
tests/read_data.c: Fix ternary flag comparison in the real case. git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@398 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/read_data.c')
-rw-r--r--tests/read_data.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/read_data.c b/tests/read_data.c
index 028aea4..f2c5d02 100644
--- a/tests/read_data.c
+++ b/tests/read_data.c
@@ -391,7 +391,7 @@ data_check (mpc_function function, const char *file_name)
read_fc (fp, &inex_re, x1, &sign_real, z1, &mpfr_rnd);
mpfr_set_prec (x2, MPFR_PREC (x1));
inex = function.pointer.FC (x2, z1, mpfr_rnd);
- if (!MPC_INEX_CMP (inex_re, __NOT_CHECKED, inex)
+ if ((inex_re != __NOT_CHECKED && inex_re != inex)
|| !same_mpfr_value (x1, x2, sign_real))
{
mpfr_t got, expected;
@@ -402,7 +402,7 @@ data_check (mpc_function function, const char *file_name)
printf ("%s(op) failed (%s:%lu)\nwith rounding mode %s\n",
function.name, file_name, line_number-1,
mpfr_rnd_mode[mpfr_rnd]);
- if (!MPC_INEX_CMP (inex_re, __NOT_CHECKED, inex))
+ if (inex_re != __NOT_CHECKED && inex_re != inex)
printf("ternary value: got %s, expected %s\n",
MPFR_INEX_STR (inex), MPFR_INEX_STR (inex_re));
OUT (op);