summaryrefslogtreecommitdiff
path: root/tests/misc.test
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2010-03-03 15:48:12 +1000
committerSteve Bennett <steveb@workware.net.au>2010-10-15 11:02:48 +1000
commitec3d0d6cfddfa055d00c820a2ed99a7d6858aa82 (patch)
treef22d707fca94a4738dcaa2c1382e7c95d36e6437 /tests/misc.test
parentef6d52c15295a03e343a1ffc12452f7900bb94cd (diff)
Fix lassign to work properly with an empty list
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/misc.test')
-rw-r--r--tests/misc.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/misc.test b/tests/misc.test
index e44106c..6bd9477 100644
--- a/tests/misc.test
+++ b/tests/misc.test
@@ -34,6 +34,12 @@ test regr-1.4 "format double percent" {
format (%d%%) 12
} {(12%)}
+test regr-1.5 "lassign with empty list" {
+ unset -nocomplain a b c
+ lassign {} a b c
+ info exists c
+} {1}
+
section "I/O Testing"
test io-1.1 "Read last line with no newline" {