summaryrefslogtreecommitdiffstats
path: root/tests/stringObj.test
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2002-11-13 22:11:38 (GMT)
committervincentdarley <vincentdarley>2002-11-13 22:11:38 (GMT)
commitfe149949576c0ce56f3649fe2f2072823ba5e701 (patch)
tree62ea3a2dde7c791ca96c044c35cefabc0c70f126 /tests/stringObj.test
parente624eb0ea85f7ae4a82f916dffab6466c5a26d5a (diff)
downloadtcl-fe149949576c0ce56f3649fe2f2072823ba5e701.zip
tcl-fe149949576c0ce56f3649fe2f2072823ba5e701.tar.gz
tcl-fe149949576c0ce56f3649fe2f2072823ba5e701.tar.bz2
3 small fixes
Diffstat (limited to 'tests/stringObj.test')
-rw-r--r--tests/stringObj.test13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/stringObj.test b/tests/stringObj.test
index 115ba2c..c2db812 100644
--- a/tests/stringObj.test
+++ b/tests/stringObj.test
@@ -12,7 +12,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: stringObj.test,v 1.11 2000/06/28 18:11:21 ericm Exp $
+# RCS: @(#) $Id: stringObj.test,v 1.12 2002/11/13 22:11:41 vincentdarley Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -415,6 +415,17 @@ test stringObj-13.6 {Tcl_GetCharLength with mixed width chars} {
list [string length $a] [string length $a]
} {10 10}
+test stringObj-14.1 {Tcl_SetObjLength on pure unicode object} {knownBug} {
+ teststringobj set 1 foo
+ teststringobj getunicode 1
+ teststringobj append 1 bar -1
+ teststringobj getunicode 1
+ teststringobj append 1 bar -1
+ teststringobj setlength 1 0
+ teststringobj append 1 bar -1
+ teststringobj get 1
+} {bar}
+
testobj freeallvars
# cleanup