comparison scripts/testfun/fail.m @ 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 516bb87ea72e
children bac0d6f07a3e
comparison
equal deleted inserted replaced
21580:ecce63c99c3f 21581:6fab85c1538f
140 140
141 141
142 %!fail ("[1,2]*[2,3]", "nonconformant") 142 %!fail ("[1,2]*[2,3]", "nonconformant")
143 %!fail ("fail ('[1,2]*[2;3]', 'nonconformant')", "expected error <nonconformant> but got none") 143 %!fail ("fail ('[1,2]*[2;3]', 'nonconformant')", "expected error <nonconformant> but got none")
144 %!fail ("fail ('[1,2]*[2,3]', 'usage:')", "expected error <usage:>\nbut got.*nonconformant") 144 %!fail ("fail ('[1,2]*[2,3]', 'usage:')", "expected error <usage:>\nbut got.*nonconformant")
145 %!fail ("warning ('test warning')", "warning", "test warning"); 145 %!fail ("warning ('test warning')", "warning", "test warning")
146 146 %!fail ("warning ('next test')", 'warning', 'next test')
147 #%!fail ("warning ('next test')",'warning','next test'); # only allowed one warning test?!?
148 147
149 ## Test that fail() itself will generate an error 148 ## Test that fail() itself will generate an error
150 %!error <expected error> fail ("1") 149 %!error <expected error> fail ("1")
151 %!error <'__a__' undefined> fail ("__a__*[2;3]", "nonconformant") 150 %!error <'__a__' undefined> fail ("__a__*[2;3]", "nonconformant")
152 %!error <expected error .usage:> fail ("__a__*[2,3]", "usage:") 151 %!error <expected error .usage:> fail ("__a__*[2,3]", "usage:")