summaryrefslogtreecommitdiff
path: root/tests/tio_str.c
diff options
context:
space:
mode:
authorPhilippe Theveny <philippe.theveny@laposte.net>2009-03-24 10:33:14 +0000
committerPhilippe Theveny <philippe.theveny@laposte.net>2009-03-24 10:33:14 +0000
commit0d17ea21d2b3d37fcf81399d53db27c52292726b (patch)
tree6392b80d263c1f87a55162154cb7a0982e27dd12 /tests/tio_str.c
parentf9d1465a642885fb49e60cc309768bee955c4cf4 (diff)
downloadmpc-git-0d17ea21d2b3d37fcf81399d53db27c52292726b.tar.gz
src/inp_str.c: Read sequence of adjacent alphanumerical char through new functions extract_suffix and extract_string
tests/inp_str.dat: adapt data to new behavior, STRING is now completely enclosed into quotes tests/tio_str.c: read string remainder if needed. git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/mpc/trunk@500 211d60ee-9f03-0410-a15a-8952a2c7a4e4
Diffstat (limited to 'tests/tio_str.c')
-rw-r--r--tests/tio_str.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/tio_str.c b/tests/tio_str.c
index bc87749..c4f2eb5 100644
--- a/tests/tio_str.c
+++ b/tests/tio_str.c
@@ -82,7 +82,6 @@ check_file (const char* file_name)
inex = mpc_inp_str (got, fp, &size, base, rnd);
/* 3. compare this result with the expected one */
-
if (inex != expected_inex || !same_mpc_value (got, expected, ks)
|| size != expected_size)
{
@@ -94,13 +93,16 @@ check_file (const char* file_name)
if (size != expected_size)
printf (" got size: %lu\nexpected size: %lu\n ",
(unsigned long int) size, (unsigned long int) expected_size);
+ printf (" ");
OUT (got);
OUT (expected);
exit (1);
}
+ while ((nextchar = getc (fp)) != '"');
nextchar = getc (fp);
+
skip_whitespace_comments (fp);
}