Mercurial > hg > octave-nkf
diff test/test_io.m @ 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 | 7872afb42fab |
children | 3e1871badab9 |
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);