summaryrefslogtreecommitdiffstats
path: root/tests/indexObj.test
diff options
context:
space:
mode:
authordkf <dkf@noemail.net>2000-11-24 11:27:36 (GMT)
committerdkf <dkf@noemail.net>2000-11-24 11:27:36 (GMT)
commitd1e74b5208eb81efadf99306ba252e28c28808c8 (patch)
tree04cbf71084d0140cae333ababd2f11c658ef988d /tests/indexObj.test
parentf625696e0569fcd3623ac4b9bbed660c704eab78 (diff)
downloadtcl-d1e74b5208eb81efadf99306ba252e28c28808c8.zip
tcl-d1e74b5208eb81efadf99306ba252e28c28808c8.tar.gz
tcl-d1e74b5208eb81efadf99306ba252e28c28808c8.tar.bz2
Now correctly test for (and fix) Bug #119082.
FossilOrigin-Name: ec52a943df40871066b51b23a35a8267d8379501
Diffstat (limited to 'tests/indexObj.test')
-rw-r--r--tests/indexObj.test21
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/indexObj.test b/tests/indexObj.test
index 4dd83f5..9a8a582 100644
--- a/tests/indexObj.test
+++ b/tests/indexObj.test
@@ -8,7 +8,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: indexObj.test,v 1.6 2000/08/07 22:42:32 ericm Exp $
+# RCS: @(#) $Id: indexObj.test,v 1.7 2000/11/24 11:27:38 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -89,6 +89,25 @@ test indexObj-5.6 {Tcl_WrongNumArgs} {
testwrongnumargs 2 "" mycmd foo
} "wrong # args: should be \"mycmd foo\""
+test indexObj-6.1 {Tcl_GetIndexFromObjStruct} {
+ set x a
+ testgetindexfromobjstruct $x 0
+} "wrong # args: should be \"testgetindexfromobjstruct a 0\""
+test indexObj-6.2 {Tcl_GetIndexFromObjStruct} {
+ set x a
+ testgetindexfromobjstruct $x 0
+ testgetindexfromobjstruct $x 0
+} "wrong # args: should be \"testgetindexfromobjstruct a 0\""
+test indexObj-6.3 {Tcl_GetIndexFromObjStruct} {
+ set x c
+ testgetindexfromobjstruct $x 1
+} "wrong # args: should be \"testgetindexfromobjstruct c 1\""
+test indexObj-6.4 {Tcl_GetIndexFromObjStruct} {
+ set x c
+ testgetindexfromobjstruct $x 1
+ testgetindexfromobjstruct $x 1
+} "wrong # args: should be \"testgetindexfromobjstruct c 1\""
+
# cleanup
::tcltest::cleanupTests
return