diff options
Diffstat (limited to 'contrib/tcl/tests/join.test')
-rw-r--r-- | contrib/tcl/tests/join.test | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/contrib/tcl/tests/join.test b/contrib/tcl/tests/join.test index 4023de2cab6a..62af644fa088 100644 --- a/contrib/tcl/tests/join.test +++ b/contrib/tcl/tests/join.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# SCCS: @(#) join.test 1.6 96/02/16 08:56:02 +# SCCS: @(#) join.test 1.7 97/10/06 13:04:59 if {[string compare test [info procs test]] == 1} then {source defs} @@ -36,3 +36,13 @@ test join-2.2 {join errors} { test join-2.3 {join errors} { list [catch {join "a \{ c" 111} msg] $msg $errorCode } {1 {unmatched open brace in list} NONE} + +test join-3.1 {joinString is binary ok} { + string length [join {a b c} a\0b] +} 9 + +test join-3.2 {join is binary ok} { + string length [join "a\0b a\0b a\0b"] +} 11 + + |