summaryrefslogtreecommitdiffstats
path: root/tests/listObj.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-05-17 21:28:59 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-05-17 21:28:59 (GMT)
commit51a0c200366a96df5068e05042f8a70c7243423f (patch)
treee62cc6e2e3528990434f7a5a5a7009a8caed78ec /tests/listObj.test
parent53781d7b887dd8f12daf4bdb95edace085a7db77 (diff)
downloadtcl-51a0c200366a96df5068e05042f8a70c7243423f.zip
tcl-51a0c200366a96df5068e05042f8a70c7243423f.tar.gz
tcl-51a0c200366a96df5068e05042f8a70c7243423f.tar.bz2
* generic/tclObj.c (TclInitObjSubsystem): Removed the
* tests/listObj.test: registration of the Tcl_ObjType's "list", * tests/obj.test: "procbody", "index", "ensembleCommand", "localVarName", and "levelReference". The only reason to register a Tcl_ObjType is to have it returned by Tcl_GetObjType, and the only reason for that is to retrieve a (Tcl_ObjType *) to pass to Tcl_ConvertToType(). None of the types above can support a Tcl_ConvertToType() call; they panic. Better not to offer something than to lead users into a panic.
Diffstat (limited to 'tests/listObj.test')
-rw-r--r--tests/listObj.test13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/listObj.test b/tests/listObj.test
index fd11c24..aa3f951 100644
--- a/tests/listObj.test
+++ b/tests/listObj.test
@@ -11,21 +11,18 @@
# 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.6 2004/05/19 12:15:04 dkf Exp $
+# RCS: @(#) $Id: listObj.test,v 1.7 2005/05/17 21:29:18 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
namespace import -force ::tcltest::*
}
-testConstraint testobj [llength [info commands testobj]]
-
catch {unset x}
-test listobj-1.1 {Tcl_GetListObjType} testobj {
- set t [testobj types]
- set first [string first "list" $t]
- set result [expr {$first != -1}]
-} {1}
+test listobj-1.1 {Tcl_GetListObjType} empty {
+ # Test removed; tested an internal detail
+ # that's no longer correct, and duplicated test obj-1.1
+} {}
test listobj-2.1 {Tcl_SetListObj, use in lappend} {
catch {unset x}