Mercurial > octave
diff test/struct.tst @ 21581:6fab85c1538f
maint: Follow Octave conventions for use of semicolon in BIST tests.
* testfun.txi: Document Octave conventions for use of semicolon in BIST tests.
* cellfun.cc, ellipj.cc, file-io.cc, gcd.cc, hash.cc, nproc.cc,
utils.cc, fftw.cc, ov-usr-fcn.cc, oct-parse.in.yy, md5sum.m, wavread.m, wavwrite.m,
cplxpair.m, rat.m, im2double.m, rref.m, stem3.m, rotate.m, pchip.m, blackman.m,
hamming.m, hanning.m, spectral_adf.m, spectral_xdf.m, assert.m, fail.m,
etime.m, build-sparse-tests.sh, classes.tst, ctor-vs-method.tst, index.tst,
io.tst, struct.tst: Follow Octave conventions for use of semicolon in BIST
tests.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 01 Apr 2016 18:16:01 -0700 |
parents | ecce63c99c3f |
children | bac0d6f07a3e |
line wrap: on
line diff
--- a/test/struct.tst Fri Apr 01 16:03:29 2016 -0700 +++ b/test/struct.tst Fri Apr 01 18:16:01 2016 -0700 @@ -26,13 +26,13 @@ %! c = fieldnames (s.a); %! assert (iscell (c) && strcmp (c{1}, "b")); -%!error <Invalid call to fieldnames> fieldnames (); +%!error <Invalid call to fieldnames> fieldnames () %!test %! s.a = 1; %! fail ("fieldnames (s, 1)", "Invalid call to fieldnames"); -%!error fieldnames (1); +%!error fieldnames (1) %!test %! s.aaa = 1; @@ -44,7 +44,7 @@ %! s.a = 2; %! assert (!(isfield (s, "b"))); -%!error <Invalid call to isfield> isfield (); +%!error <Invalid call to isfield> isfield () %!test %! s.aaa = 1; @@ -74,7 +74,7 @@ %! s.a.b = 1; %! assert (isstruct (s.a)); -%!error <Invalid call to isstruct> isstruct (); +%!error <Invalid call to isstruct> isstruct () %!test %! s.a = 1;