Mercurial > octave-nkf
diff test/switch.tst @ 17309:5a65b2cc9508
test: Add tests for 'end' form of 'endfor', 'endif', etc.
* test/for.tst, test/if.tst, test/jit.tst, test/switch.tst, test/try.tst,
test/unwind.tst, test/while.tst: Add tests for 'end' form of 'endfor', 'endif',
etc.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 21 Aug 2013 18:06:25 -0700 |
parents | c3c1ebfaa7dc |
children | d63878346099 |
line wrap: on
line diff
--- a/test/switch.tst Wed Aug 21 17:17:16 2013 -0700 +++ b/test/switch.tst Wed Aug 21 18:06:25 2013 -0700 @@ -21,7 +21,8 @@ %! b = 2; %! c = 3; %! -%! switch (0) case 1 x = a; case 2 x = b; otherwise x = c; endswitch +%! ## "end" is part of test, check not using "endswitch" +%! switch (0) case 1 x = a; case 2 x = b; otherwise x = c; end %! switch (1) case 1 y = a; case 2 y = b; otherwise y = c; endswitch %! switch (2) case 1 z = a; case 2 z = b; otherwise z = c; endswitch %! switch (3) case 1 p = a; case 2 p = b; otherwise p = c; endswitch