Mercurial > hg > octave-nkf
diff scripts/testfun/example.m @ 14039:e98140f84ae0 stable
test: Rewrite %!tests to preserve warning state.
* iscolumn.m, isrow.m, isscalar.m, isvector.m, example.m:
Rewrite %!tests to preserve warning state.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Mon, 12 Dec 2011 21:40:07 -0800 |
parents | e81ddf9cacd5 |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/scripts/testfun/example.m +++ b/scripts/testfun/example.m @@ -83,6 +83,7 @@ endfunction + %!## warning: don't modify the demos without modifying the tests! %!demo %! example ('example'); @@ -98,5 +99,6 @@ %! assert (idx, [1, 23, 63]); %% Test input validation -%!error example; -%!error example('example', 3, 5) +%!error example +%!error example ('example', 3, 5) +