summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2016-10-31 14:17:31 (GMT)
committerdgp <dgp@users.sourceforge.net>2016-10-31 14:17:31 (GMT)
commitb53cf6d38cccd02ba7f037846cb7a5587b1cacac (patch)
treeb8b587923edd4e64f140f66dbaf7d760a6eaca34 /tests
parent779b8dad76799b4cb999879e6954f8c9d9e89cb8 (diff)
downloadtcl-b53cf6d38cccd02ba7f037846cb7a5587b1cacac.zip
tcl-b53cf6d38cccd02ba7f037846cb7a5587b1cacac.tar.gz
tcl-b53cf6d38cccd02ba7f037846cb7a5587b1cacac.tar.bz2
Coverage tests for INST_STR_CONCAT1 byterarray ops.
Diffstat (limited to 'tests')
-rw-r--r--tests/binary.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/binary.test b/tests/binary.test
index 40b1315..7738f69 100644
--- a/tests/binary.test
+++ b/tests/binary.test
@@ -2837,6 +2837,19 @@ test binary-76.2 {binary string appending growth algorithm} win {
# Append to it
string length [append str [binary format a* foo]]
} 3
+
+test binary-77.1 {string cat ops on all bytearrays} {
+ apply {{a b} {
+ return [binary format H* $a][binary format H* $b]
+ }} ab cd
+} [binary format H* abcd]
+test binary-77.2 {string cat ops on all bytearrays} {
+ apply {{a b} {
+ set one [binary format H* $a]
+ return $one[binary format H* $b]
+ }} ab cd
+} [binary format H* abcd]
+
# ----------------------------------------------------------------------
# cleanup