Index: openacs-4/packages/xotcl-core/tcl/test/xotcl-test-procs.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/xotcl-core/tcl/test/xotcl-test-procs.tcl,v diff -u -r1.1.2.24 -r1.1.2.25 --- openacs-4/packages/xotcl-core/tcl/test/xotcl-test-procs.tcl 13 Jan 2023 17:17:37 -0000 1.1.2.24 +++ openacs-4/packages/xotcl-core/tcl/test/xotcl-test-procs.tcl 16 Jan 2023 10:51:24 -0000 1.1.2.25 @@ -563,17 +563,30 @@ [template::multirow columns person_mr2] \ "person_id first_names last_name" - aa_section "Now for some freestyle operations..." + aa_section "Create a new multirow via ::xo::dc, then append via the ::template api" # We set d outside the multirow body to show that the variable # will be reinitialized at every loop. set d a ::xo::dc multirow -local t -extend {d e} __test_multirow q { select * - from (values (1, 2, 3), (4, 5, 6)) as t (a, b, c) + from (values (1, 2, 3), (4, 5, 6), (7, 8, 9), (10, 11, 12), (666, 666, 666)) as t (a, b, c) } { + # Test issuing continue in the loop + if {$a == 7} { + continue + } + + # Test issuing break in the loop + if {$c == 12} { + break + } + + # Test changing a "native" column incr a + + # Test changing an extended column (var existed outside) append d a } @@ -597,14 +610,15 @@ } + set code [template::adp_compile -string $template] + set expected {