diff options
author | Paul Traina <pst@FreeBSD.org> | 1997-11-27 19:49:05 +0000 |
---|---|---|
committer | Paul Traina <pst@FreeBSD.org> | 1997-11-27 19:49:05 +0000 |
commit | f25b19db8d50748d4f75272ae324cad27788d9b3 (patch) | |
tree | cef0bba69f1833802f43364a0cde6945601e665a /contrib/tcl/tests/join.test | |
parent | 539e1e66ff6f99c987c8e03872ddaea5260db8f7 (diff) |
Notes
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 4023de2cab6a1..62af644fa0884 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 + + |