summaryrefslogtreecommitdiffstats
path: root/tests/cmdMZ.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/cmdMZ.test')
-rw-r--r--tests/cmdMZ.test28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/cmdMZ.test b/tests/cmdMZ.test
index 8ae7a3a..c0f2738 100644
--- a/tests/cmdMZ.test
+++ b/tests/cmdMZ.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: cmdMZ.test,v 1.27 2009/11/16 17:38:09 ferrieux Exp $
+# RCS: @(#) $Id: cmdMZ.test,v 1.28 2009/11/16 18:00:11 dgp Exp $
if {[catch {package require tcltest 2.1}]} {
puts stderr "Skipping tests in [info script]. tcltest 2.1 required."
@@ -119,18 +119,18 @@ proc dictSort {d} {
return $result
}
-test cmdMZ-return-2.0 {return option handling} -body {
+test cmdMZ-return-2.0 {return option handling} {
list [catch return -> foo] [dictSort $foo]
-} -match glob -result {2 {-code 0 -errorstack * -level 1}}
-test cmdMZ-return-2.1 {return option handling} -body {
+} {2 {-code 0 -level 1}}
+test cmdMZ-return-2.1 {return option handling} {
list [catch {return -bar soom} -> foo] [dictSort $foo]
-} -match glob -result {2 {-bar soom -code 0 -errorstack * -level 1}}
-test cmdMZ-return-2.2 {return option handling} -body {
+} {2 {-bar soom -code 0 -level 1}}
+test cmdMZ-return-2.2 {return option handling} {
list [catch {return -code return} -> foo] [dictSort $foo]
-} -match glob -result {2 {-code 0 -errorstack * -level 2}}
-test cmdMZ-return-2.3 {return option handling} -body {
+} {2 {-code 0 -level 2}}
+test cmdMZ-return-2.3 {return option handling} {
list [catch {return -code return -level 10} -> foo] [dictSort $foo]
-} -match glob -result {2 {-code 0 -errorstack * -level 11}}
+} {2 {-code 0 -level 11}}
test cmdMZ-return-2.4 {return option handling} -body {
return -level 0 -code error
} -returnCodes error -result {}
@@ -149,14 +149,14 @@ test cmdMZ-return-2.8 {return option handling} -body {
test cmdMZ-return-2.9 {return option handling} -body {
return -level 0 -code 10
} -returnCodes 10 -result {}
-test cmdMZ-return-2.10 {return option handling} -body {
+test cmdMZ-return-2.10 {return option handling} {
list [catch {return -level 0 -code error} -> foo] [dictSort $foo]
-} -match glob -result {1 {-code 1 -errorcode NONE -errorinfo {
+} {1 {-code 1 -errorcode NONE -errorinfo {
while executing
-"return -level 0 -code error"} -errorline 1 -errorstack * -level 0}}
-test cmdMZ-return-2.11 {return option handling} -body {
+"return -level 0 -code error"} -errorline 1 -level 0}}
+test cmdMZ-return-2.11 {return option handling} {
list [catch {return -level 0 -code break} -> foo] [dictSort $foo]
-} -match glob -result {3 {-code 3 -errorstack * -level 0}}
+} {3 {-code 3 -level 0}}
test cmdMZ-return-2.12 {return option handling} -body {
return -level 0 -code error -options {-code ok}
} -returnCodes ok -result {}