From 9ad3d4b7b182e5ef54ebddd3c84b8eefd803b86c Mon Sep 17 00:00:00 2001 From: sebres Date: Tue, 8 Jan 2019 14:39:59 +0000 Subject: amend to [a87460dbd4], added clean-up to avoid error {can't set "a(x)": variable isn't array} on next iteration of noComp loop. --- tests/basic.test | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/basic.test b/tests/basic.test index 137ad53..089a62b 100644 --- a/tests/basic.test +++ b/tests/basic.test @@ -962,9 +962,11 @@ test basic-48.23.$noComp {expansion: handle return codes} -constraints $constrai unset res t } -result {0 10 1 Hejsan} -test basic-48.24.$noComp {expansion: empty not canonical list, regression test, bug [cc1e91552c]} $constraints { +test basic-48.24.$noComp {expansion: empty not canonical list, regression test, bug [cc1e91552c]} -constraints $constraints -setup { + unset -nocomplain a +} -body { run {list [list {*}{ }] [list {*}[format %c 32]] [list {*}[set a { }]]} -} [lrepeat 3 {}] +} -result [lrepeat 3 {}] -cleanup {unset -nocomplain a} } ;# End of noComp loop -- cgit v0.12