Mercurial > hg > octave-lyh
changeset 13009:38b52a073cfa
maint: fix botched tests in test_io.m
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 26 Aug 2011 09:33:52 -0400 |
parents | 85dac13a911b |
children | edc5ec6e949b 15eefbd9d4e8 7df7650492e8 |
files | test/test_io.m |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/test/test_io.m +++ b/test/test_io.m @@ -246,22 +246,22 @@ %!assert (sscanf ('123456', '%10s'), '123456') %!test -%! [val, count, msg, pos] = sscanf ("3I2", "%f") +%! [val, count, msg, pos] = sscanf ("3I2", "%f"); %! assert (val, 3); %! assert (count, 1); %! assert (msg, ""); %! assert (pos, 2); %!test -%! [val, count, msg, pos] = sscanf ("3In2", "%f") +%! [val, count, msg, pos] = sscanf ("3In2", "%f"); %! assert (val, 3); %! assert (count, 1); %! assert (msg, ""); %! assert (pos, 2); %!test -%! [val, count, msg, pos] = sscanf ("3Inf2", "%f") -%! assert (val, [3; Inf, 2); +%! [val, count, msg, pos] = sscanf ("3Inf2", "%f"); +%! assert (val, [3; Inf; 2]); %! assert (count, 3); %! assert (msg, ""); %! assert (pos, 6);