summaryrefslogtreecommitdiffstats
path: root/tests/stringObj.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2009-03-21 02:54:23 (GMT)
committerdgp <dgp@users.sourceforge.net>2009-03-21 02:54:23 (GMT)
commit12adb10de26f2df3970251b318b64a2f5ccd61d8 (patch)
tree07c6c36f119d562a59788ed599bca44cae6a7247 /tests/stringObj.test
parentae500c24671537445c8f784f45e71f05c5b95bf6 (diff)
downloadtcl-12adb10de26f2df3970251b318b64a2f5ccd61d8.zip
tcl-12adb10de26f2df3970251b318b64a2f5ccd61d8.tar.gz
tcl-12adb10de26f2df3970251b318b64a2f5ccd61d8.tar.bz2
* generic/tclStringObj.c: Test stringObj-6.9 checks that
* tests/stringObj.test: Tcl_AppendStringsToObj() no longer crashes when operating on a pure unicode value. [Bug 2597185]
Diffstat (limited to 'tests/stringObj.test')
-rw-r--r--tests/stringObj.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/stringObj.test b/tests/stringObj.test
index 90ec9c3..d497262 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.16 2004/05/19 20:15:32 dkf Exp $
+# RCS: @(#) $Id: stringObj.test,v 1.16.14.1 2009/03/21 02:54:23 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -160,6 +160,12 @@ test stringObj-6.8 {Tcl_AppendStringsToObj procedure, object totally empty} test
teststringobj appendstrings 1 {}
list [teststringobj length2 1] [teststringobj get 1]
} {0 {}}
+test stringObj-6.9 {Tcl_AppendStringToObj, pure unicode} {
+ testobj freeallvars
+ teststringobj set2 1 [string replace abc 1 1 d]
+ teststringobj appendstrings 1 foo bar soom
+ teststringobj get 1
+} adcfoobarsoom
test stringObj-7.1 {SetStringFromAny procedure} testobj {
testobj freeallvars