Mercurial > hg > octave-lyh
diff scripts/testfun/assert.m @ 17322:7f27a3cbdb41
Use Octave coding convention of 1 space after '%!' test prefix.
* scripts/signal/fftconv.m, scripts/signal/fftshift.m,
scripts/testfun/assert.m, test/args.tst:
Use Octave coding convention of 1 space after '%!' test prefix.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 21 Aug 2013 20:41:05 -0700 |
parents | 09543e9c8f40 |
children | b8ecdb6ce2f8 |
line wrap: on
line diff
--- a/scripts/testfun/assert.m +++ b/scripts/testfun/assert.m @@ -549,21 +549,22 @@ ## structures %!error <Expected struct, but observed double> assert (1, struct ("a", 1)) %!error <Structure sizes don't match> -%! x(1,2,3).a = 1; -%! y(1,2).a = 1; -%! assert (x,y); +%! x(1,2,3).a = 1; +%! y(1,2).a = 1; +%! assert (x,y); %!error <Structure sizes don't match> -%! x(1,2,3).a = 1; -%! y(3,2,2).a = 1; -%! assert (x,y); +%! x(1,2,3).a = 1; +%! y(3,2,2).a = 1; +%! assert (x,y); %!error <Structure sizes don't match> -%! x.a = 1; x.b = 1; -%! y.a = 1; -%! assert (x,y); +%! x.a = 1; +%! x.b = 1; +%! y.a = 1; +%! assert (x,y); %!error <'b' is not an expected field> -%! x.b = 1; -%! y.a = 1; -%! assert (x,y); +%! x.b = 1; +%! y.a = 1; +%! assert (x,y); %!test %! x.a = 1; x.b=[2, 2];