summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-29 10:04:24 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-29 10:04:24 (GMT)
commit9efaa4d7f1aeb58c52fe41c62713b568a0833948 (patch)
tree53ef0f33fa4099e711d780587bd9717928983432 /tests/string.test
parent37d6f900991ec0280a7ecc776cd823f6cb1ab819 (diff)
parentdc84eca339d2be8913965c070a8e99e532326934 (diff)
downloadtcl-9efaa4d7f1aeb58c52fe41c62713b568a0833948.zip
tcl-9efaa4d7f1aeb58c52fe41c62713b568a0833948.tar.gz
tcl-9efaa4d7f1aeb58c52fe41c62713b568a0833948.tar.bz2
Fix implib filenames (adapted from Mingw2's 006-proper-implib-name.mingw.patch)
3 new testcases
Diffstat (limited to 'tests/string.test')
-rw-r--r--tests/string.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/string.test b/tests/string.test
index 18faa51..46eb6fd 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -149,6 +149,18 @@ test string-2.33 {string compare, high bit} {
proc foo {} {string compare "\x00\x00" "\x00\x01"}
foo
} -1
+test string-2.34 {string compare, binary equal} {
+ proc foo {} {string compare [binary format a100 0] [binary format a100 0]}
+ foo
+} 0
+test string-2.35 {string compare, binary neq} {
+ proc foo {} {string compare [binary format a100a 0 1] [binary format a100a 0 0]}
+ foo
+} 1
+test string-2.36 {string compare, binary neq unequal length} {
+ proc foo {} {string compare [binary format a20a 0 1] [binary format a100a 0 0]}
+ foo
+} 1
# only need a few tests on equal, since it uses the same code as
# string compare, but just modifies the return output