Commits

Ben Abbott  committed 8f0d07f

Fix assertions with "observed" and "expected" out of order.

* scripts/io/strread.m: "observed" and "expected" out of order for 2 tests.

  • Participants
  • Parent commits 9a210f7

Comments (0)

Files changed (1)

File scripts/io/strread.m

 %!   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 = "";
 %!   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");