summaryrefslogtreecommitdiffstats
path: root/tests/listObj.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-05-19 12:15:04 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-05-19 12:15:04 (GMT)
commit8c1e2324b5a38eb0a82c1c36025010cd62884fc5 (patch)
treeaf8b2fd9ee3d1b337c97b57f261064bf92309970 /tests/listObj.test
parentc0cb5278a3cf076a8f8b3f7ea74073989c4d2fa5 (diff)
downloadtcl-8c1e2324b5a38eb0a82c1c36025010cd62884fc5.zip
tcl-8c1e2324b5a38eb0a82c1c36025010cd62884fc5.tar.gz
tcl-8c1e2324b5a38eb0a82c1c36025010cd62884fc5.tar.bz2
Convert conditional tests into constrained tests
Diffstat (limited to 'tests/listObj.test')
-rw-r--r--tests/listObj.test23
1 files changed, 3 insertions, 20 deletions
diff --git a/tests/listObj.test b/tests/listObj.test
index a240dec..fd11c24 100644
--- a/tests/listObj.test
+++ b/tests/listObj.test
@@ -11,22 +11,17 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: listObj.test,v 1.5 2000/04/10 17:19:01 ericm Exp $
+# RCS: @(#) $Id: listObj.test,v 1.6 2004/05/19 12:15:04 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
namespace import -force ::tcltest::*
}
-if {[info commands testobj] == {}} {
- puts "This application hasn't been compiled with the \"testobj\""
- puts "command, so I can't test the Tcl type and object support."
- ::tcltest::cleanupTests
- return
-}
+testConstraint testobj [llength [info commands testobj]]
catch {unset x}
-test listobj-1.1 {Tcl_GetListObjType} {
+test listobj-1.1 {Tcl_GetListObjType} testobj {
set t [testobj types]
set first [string first "list" $t]
set result [expr {$first != -1}]
@@ -186,15 +181,3 @@ test listobj-9.1 {UpdateStringOfList} {
# cleanup
::tcltest::cleanupTests
return
-
-
-
-
-
-
-
-
-
-
-
-