summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-07-02 17:21:53 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-07-02 17:21:53 (GMT)
commita139661621ec842c91242c4b0fca910b9c964398 (patch)
tree642e72b2957bdc240f47bb9d915a52d60995d771 /tests
parent445755f38427241613b3d9209d17beab10076743 (diff)
downloadtcl-a139661621ec842c91242c4b0fca910b9c964398.zip
tcl-a139661621ec842c91242c4b0fca910b9c964398.tar.gz
tcl-a139661621ec842c91242c4b0fca910b9c964398.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 c433241..dc1d3bf 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 {