summaryrefslogtreecommitdiff
path: root/tests/tio_str.c
diff options
context:
space:
mode:
authorthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2009-03-23 12:05:45 +0000
committerthevenyp <thevenyp@211d60ee-9f03-0410-a15a-8952a2c7a4e4>2009-03-23 12:05:45 +0000
commit33aa398a2e6078861881bbd488f86cef0948f5e3 (patch)
treed7aa140229c6166adb44ab81d5a45c0bb4e4f1b5 /tests/tio_str.c
parent243a2bd11df5ac0fe907fcfe4b8a6ebe39e05735 (diff)
downloadmpc-33aa398a2e6078861881bbd488f86cef0948f5e3.tar.gz
tests/inp_str.dat tests/tio_str.c tests/tset.c: Increase test coverage up to 100% LOC
git-svn-id: svn://scm.gforge.inria.fr/svn/mpc/trunk@496 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tio_str.c')
-rw-r--r--tests/tio_str.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tio_str.c b/tests/tio_str.c
index 83ae34d..2bf8dc8 100644
--- a/tests/tio_str.c
+++ b/tests/tio_str.c
@@ -84,7 +84,8 @@ check_file (const char* file_name)
read_mpc_rounding_mode (fp, &rnd);
/* 2. read string at the same precision as the expected result */
- ungetc (nextchar, fp);
+ while (nextchar != '"')
+ nextchar = getc (fp);
mpfr_set_prec (MPC_RE (got), MPC_PREC_RE (expected));
mpfr_set_prec (MPC_IM (got), MPC_PREC_IM (expected));
inex = mpc_inp_str (got, fp, &size, base, rnd);