Mercurial > octave-nkf
changeset 15844:8f0d07f8390b
Fix assertions with "observed" and "expected" out of order.
* scripts/io/strread.m: "observed" and "expected" out of order for 2 tests.
author | Ben Abbott <bpabbott@mac.com> |
---|---|
date | Mon, 24 Dec 2012 18:49:37 -0500 |
parents | 9a210f7fe62e |
children | 1ea5f8a4a914 |
files | scripts/io/strread.m |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/io/strread.m Sun Dec 23 13:17:51 2012 -0500 +++ b/scripts/io/strread.m Mon Dec 24 18:49:37 2012 -0500 @@ -797,8 +797,8 @@ %! str = sprintf ("%s %.6f %s\n", str, a(k), b(k)); %! endfor %! [aa, bb] = strread (str, "%f %s"); -%! assert (a, aa, 1e-6); -%! assert (cellstr (b), bb); +%! assert (aa, a, 1e-6); +%! assert (bb, cellstr (b)); %!test %! str = ""; @@ -808,7 +808,7 @@ %! str = sprintf ("%s %.6f %s\n", str, a(k), b(k)); %! endfor %! aa = strread (str, "%f %*s"); -%! assert (a, aa, 1e-6); +%! assert (aa, a, 1e-6); %!test %! str = sprintf ("/* this is\nacomment*/ 1 2 3");