summaryrefslogtreecommitdiffstats
path: root/tests/cmdMZ.test
diff options
context:
space:
mode:
authorpooryorick <com.digitalsmarties@pooryorick.com>2019-04-08 13:38:19 (GMT)
committerpooryorick <com.digitalsmarties@pooryorick.com>2019-04-08 13:38:19 (GMT)
commitc1de90d70a6cac71dc4200eb9d9fb2b08a8f9b1c (patch)
treeec4e009816d9fb00f50e45bfd41fe10eb892458c /tests/cmdMZ.test
parentf4882bb16f3d05c8b225157bb04d2401224ef23e (diff)
downloadtcl-c1de90d70a6cac71dc4200eb9d9fb2b08a8f9b1c.zip
tcl-c1de90d70a6cac71dc4200eb9d9fb2b08a8f9b1c.tar.gz
tcl-c1de90d70a6cac71dc4200eb9d9fb2b08a8f9b1c.tar.bz2
Improve test for last commit fixing [45b9faf103f2].
Diffstat (limited to 'tests/cmdMZ.test')
-rw-r--r--tests/cmdMZ.test9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/cmdMZ.test b/tests/cmdMZ.test
index dd299f1..80258dc 100644
--- a/tests/cmdMZ.test
+++ b/tests/cmdMZ.test
@@ -417,11 +417,10 @@ test cmdMZ-try-1.0 {
} -body {
::apply {{} {
- eval {
- try {
- lindex 5
- } on ok res {}
- }
+ set cmd try
+ $cmd {
+ lindex 5
+ } on ok res {}
set res
}}
} -result 5