summaryrefslogtreecommitdiffstats
path: root/tests/if-old.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/if-old.test')
-rw-r--r--tests/if-old.test24
1 files changed, 5 insertions, 19 deletions
diff --git a/tests/if-old.test b/tests/if-old.test
index 767d088..fbcf56c 100644
--- a/tests/if-old.test
+++ b/tests/if-old.test
@@ -12,12 +12,10 @@
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
-#
-# RCS: @(#) $Id: if-old.test,v 1.4 1999/06/26 03:54:14 jenn Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
- namespace import ::tcltest::*
+ namespace import -force ::tcltest::*
}
test if-old-1.1 {taking proper branch} {
@@ -45,22 +43,22 @@ test if-old-1.5 {taking proper branch} {
if 0 {set a 1} else {}
set a
} {}
-test if-old-1.5 {taking proper branch} {
+test if-old-1.6 {taking proper branch} {
set a {}
if 0 {set a 1} elseif 1 {set a 2} elseif 1 {set a 3} else {set a 4}
set a
} {2}
-test if-old-1.6 {taking proper branch} {
+test if-old-1.7 {taking proper branch} {
set a {}
if 0 {set a 1} elseif 0 {set a 2} elseif 1 {set a 3} else {set a 4}
set a
} {3}
-test if-old-1.7 {taking proper branch} {
+test if-old-1.8 {taking proper branch} {
set a {}
if 0 {set a 1} elseif 0 {set a 2} elseif 0 {set a 3} else {set a 4}
set a
} {4}
-test if-old-1.8 {taking proper branch, multiline test expr} {
+test if-old-1.9 {taking proper branch, multiline test expr} {
set a {}
if {($tcl_platform(platform) != "foobar1") && \
($tcl_platform(platform) != "foobar2")} {set a 3} else {set a 4}
@@ -162,15 +160,3 @@ test if-old-4.11 {error conditions} {
# cleanup
::tcltest::cleanupTests
return
-
-
-
-
-
-
-
-
-
-
-
-