summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-07-02 17:57:58 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-07-02 17:57:58 (GMT)
commit8694c5d2ef9e62f61322d3904c90edd7e550a290 (patch)
treeb4675f643ea62918c993582c56b16c6bdfc874ea /tests
parent725c3a636490b1c2afc7dfd48f4da92778104471 (diff)
parenta139661621ec842c91242c4b0fca910b9c964398 (diff)
downloadtcl-8694c5d2ef9e62f61322d3904c90edd7e550a290.zip
tcl-8694c5d2ef9e62f61322d3904c90edd7e550a290.tar.gz
tcl-8694c5d2ef9e62f61322d3904c90edd7e550a290.tar.bz2
[f961d7d1dd] Repair usage message for ensemble parameters with spaces.
Diffstat (limited to 'tests')
-rw-r--r--tests/namespace.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/namespace.test b/tests/namespace.test
index 0de416b..2a5f308 100644
--- a/tests/namespace.test
+++ b/tests/namespace.test
@@ -2153,6 +2153,15 @@ test namespace-50.7 {[4402cfa58c]} -setup {
rename e2 {}
rename target {}
} -result {{wrong # args: should be "e1 s2 s1 x y"} {wrong # args: should be "e1 s2 s1 x y"} {wrong # args: should be "e1 s2 s1 x y"} {wrong # args: should be "e1 s2 s1 x y"}}
+test namespace-50.8 {[f961d7d1dd]} -setup {
+ proc target {} {}
+ namespace ensemble create -command e -map {s target} -parameters {{a b}}
+} -body {
+ e
+} -returnCodes error -result {wrong # args: should be "e {a b} subcommand ?arg ...?"} -cleanup {
+ rename e {}
+ rename target {}
+}
test namespace-51.1 {name resolution path control} -body {
namespace eval ::test_ns_1 {