diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2011-01-01 15:14:42 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2011-01-01 15:14:42 (GMT) |
commit | 3ebd74d3d8fd0c54d15b9b41d6859595655e7205 (patch) | |
tree | 06031b0878fe01f3aa9ec4610a723046d9c4fe24 /tests/switch.test | |
parent | acda4274ef183d068941ca26ec07cf62197f323f (diff) | |
download | tcl-3ebd74d3d8fd0c54d15b9b41d6859595655e7205.zip tcl-3ebd74d3d8fd0c54d15b9b41d6859595655e7205.tar.gz tcl-3ebd74d3d8fd0c54d15b9b41d6859595655e7205.tar.bz2 |
Clean up of tests and conversion to tcltest 2. Target has been to get init and
cleanup code out of the test body and into the -setup/-cleanup stanzas.
Diffstat (limited to 'tests/switch.test')
-rw-r--r-- | tests/switch.test | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/switch.test b/tests/switch.test index 738565f..3f127a4 100644 --- a/tests/switch.test +++ b/tests/switch.test @@ -11,13 +11,13 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: switch.test,v 1.25 2009/07/14 16:52:28 kennykb Exp $ +# RCS: @(#) $Id: switch.test,v 1.26 2011/01/01 15:14:43 dkf Exp $ -if {[lsearch [namespace children] ::tcltest] == -1} { +if {"::tcltest" ni [namespace children]} { package require tcltest 2 namespace import -force ::tcltest::* } - + test switch-1.1 {simple patterns} { switch a a {subst 1} b {subst 2} c {subst 3} default {subst 4} } 1 @@ -753,7 +753,7 @@ test switch-15.1 {coroutine safety of non-bytecoded switch} {*}{ rename coro {} } } - + # cleanup catch {rename foo {}} ::tcltest::cleanupTests |