diff options
Diffstat (limited to 'tests/stringObj.test')
-rw-r--r-- | tests/stringObj.test | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/tests/stringObj.test b/tests/stringObj.test index b27557d..408bb70 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.13 2003/01/17 14:19:54 vincentdarley Exp $ +# RCS: @(#) $Id: stringObj.test,v 1.14 2003/02/11 18:35:12 hobbs Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -414,6 +414,13 @@ test stringObj-13.6 {Tcl_GetCharLength with mixed width chars} { set a "\u00EFa\u00BFb\u00AEc\u00EF\u00BFd\u00AE" list [string length $a] [string length $a] } {10 10} +test encoding-14.2 {Tcl_GetCharLength with identity nulls} { + # SF bug #684699 + string length [encoding convertfrom identity \x00] +} 1 +test encoding-14.2 {Tcl_GetCharLength with identity nulls} { + string length [encoding convertfrom identity \x01\x00\x02] +} 3 test stringObj-14.1 {Tcl_SetObjLength on pure unicode object} { teststringobj set 1 foo @@ -431,15 +438,3 @@ testobj freeallvars # cleanup ::tcltest::cleanupTests return - - - - - - - - - - - - |