diff options
Diffstat (limited to 'tests/case.test')
-rw-r--r-- | tests/case.test | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/tests/case.test b/tests/case.test index f310113..2960c9d 100644 --- a/tests/case.test +++ b/tests/case.test @@ -40,7 +40,7 @@ test case-1.7 {list of patterns} { test case-2.1 {error in executed command} { list [catch {case a in a {error "Just a test"} default {format 1}} msg] \ - $msg $errorInfo + $msg $::errorInfo } {1 {Just a test} {Just a test while executing "error "Just a test"" @@ -58,7 +58,7 @@ test case-2.4 {error: pattern with no body} { } {1 {extra case pattern with no body}} test case-2.5 {error in default command} { list [catch {case foo in a {error case1} default {error case2} \ - b {error case 3}} msg] $msg $errorInfo + b {error case 3}} msg] $msg $::errorInfo } {1 case2 {case2 while executing "error case2" @@ -87,15 +87,3 @@ test case-3.3 {single-argument form for pattern/command pairs} { # cleanup ::tcltest::cleanupTests return - - - - - - - - - - - - |