diff options
author | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2014-01-22 10:09:07 +0000 |
---|---|---|
committer | thevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4> | 2014-01-22 10:09:07 +0000 |
commit | f8e19d05072cb3e7bc32fc093868fdf73fa9a232 (patch) | |
tree | 28044abea340c7a5fefa24e36d2318131081c2bd /tests/read_description.c | |
parent | 9936d02411e3446fb64e5fd8fb8e5671af25dbf1 (diff) | |
download | mpc-f8e19d05072cb3e7bc32fc093868fdf73fa9a232.tar.gz |
[tests] Support of sin_cos with the new test framework.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@1422 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/read_description.c')
-rw-r--r-- | tests/read_description.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/read_description.c b/tests/read_description.c index 8a02265..f706b69 100644 --- a/tests/read_description.c +++ b/tests/read_description.c @@ -56,7 +56,8 @@ static const param_typeval_t sparam_typeval[]= { { "mpc_inex" , MPC_INEX }, { "mpc_ptr" , MPC }, { "mpc_srcptr" , MPC }, - { "mpc_rnd_t" , MPC_RND } + { "mpc_rnd_t" , MPC_RND }, + { "mpcc_inex" , MPCC_INEX } }; /* read primitives */ @@ -166,6 +167,7 @@ read_description (mpc_fun_param_t* param, const char *filename) size_t len = 0; int nbout = 0; int nbin = 0; + int rnd_mode = 0; int j; open_datafile (&datafile_context, filename); @@ -251,12 +253,15 @@ read_description (mpc_fun_param_t* param, const char *filename) if (strlen (buffer) == 0 && feof (datafile_context.fd)) break; param->T[nbout+nbin] = description_findtype (buffer); + if (param->T[nbout+nbin] == MPC_RND || param->T[nbout+nbin] == MPFR_RND) + rnd_mode++; nbin++; } free (buffer); param->nbout = nbout; - param->nbin = nbin; + param->nbin = nbin; + param->nbrnd = rnd_mode; /* duplicate output parameters at the end for the expected values */ for (j = 0; j < param->nbout; j++) |