Mercurial > octave-antonio
comparison scripts/testfun/fail.m @ 19935:2d5cbb6ac845
fail.m: Use internal variable name in BIST test (bug #44525).
* fail.m: Rename variable 'a' to '__a__' in case there is an a.m m-file.
author | Rik <rik@octave.org> |
---|---|
date | Thu, 12 Mar 2015 15:00:32 -0700 |
parents | 9fc020886ae9 |
children | 64a2d4c87ecb |
comparison
equal
deleted
inserted
replaced
19934:f0e5c6742716 | 19935:2d5cbb6ac845 |
---|---|
144 | 144 |
145 #%!fail ("warning ('next test')",'warning','next test'); # only allowed one warning test?!? | 145 #%!fail ("warning ('next test')",'warning','next test'); # only allowed one warning test?!? |
146 | 146 |
147 ## Test that fail() itself will generate an error | 147 ## Test that fail() itself will generate an error |
148 %!error <expected error> fail ("1") | 148 %!error <expected error> fail ("1") |
149 %!error <'a' undefined> fail ("a*[2;3]", "nonconformant") | 149 %!error <'__a__' undefined> fail ("__a__*[2;3]", "nonconformant") |
150 %!error <expected error .usage:> fail ("a*[2,3]", "usage:") | 150 %!error <expected error .usage:> fail ("__a__*[2,3]", "usage:") |
151 %!error <warning failure> fail ("warning ('warning failure')", "warning", "success") | 151 %!error <warning failure> fail ("warning ('warning failure')", "warning", "success") |
152 | 152 |
153 ## Test input validation | 153 ## Test input validation |
154 %!error fail () | 154 %!error fail () |
155 %!error fail (1,2,3,4) | 155 %!error fail (1,2,3,4) |