diff test/for.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 57fad64de019
children 56404cdcb723
line wrap: on
line diff
--- a/test/for.tst	Wed Aug 21 17:17:16 2013 -0700
+++ b/test/for.tst	Wed Aug 21 18:06:25 2013 -0700
@@ -19,7 +19,7 @@
 %!test
 %! for i = 1
 %!   __printf_assert__ ("%d", i);
-%! end
+%! end  # "end" is part of test, check not using "endfor"
 %! __printf_assert__ ("\n");
 %! assert (__prog_output_assert__ ("1"));
 
@@ -101,8 +101,8 @@
 %!   assert (i, {1 + 2*j; 2 + 2*j++})
 %! endfor
 
-%% test parsing of single-quoted character string appearing at the
-%% beginning of a for loop
+## test parsing of single-quoted character string appearing at the
+## beginning of a for loop
 %!test
 %! for i = 1:5
 %!   'foo';