diff options
author | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-01-15 19:26:36 (GMT) |
---|---|---|
committer | pooryorick <com.digitalsmarties@pooryorick.com> | 2023-01-15 19:26:36 (GMT) |
commit | 81262438a784ae0087c36fabd189c15a2433df33 (patch) | |
tree | 8866169fb4e8e7aa6b25810d08db6c0571a216c4 /tests/stringComp.test | |
parent | 24656c280590bbc66e98685342c461af58f478a1 (diff) | |
download | tcl-81262438a784ae0087c36fabd189c15a2433df33.zip tcl-81262438a784ae0087c36fabd189c15a2433df33.tar.gz tcl-81262438a784ae0087c36fabd189c15a2433df33.tar.bz2 |
Fix issue [8f7fdea2d], string-2.20.1 fails on big endian, and also fix issues in TclStringCmp when checkEq is 1.
Diffstat (limited to 'tests/stringComp.test')
-rw-r--r-- | tests/stringComp.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/stringComp.test b/tests/stringComp.test index a17390d..95a738c 100644 --- a/tests/stringComp.test +++ b/tests/stringComp.test @@ -100,7 +100,7 @@ foreach {tname tbody tresult tcode} { {unicode} {string compare \334 \u00fc} -1 {} {unicode} {string compare \334\334\334\374\374 \334\334\334\334\334} 1 {} {high bit} { - # This test will fail if the underlying comparison + # This test fails if the underlying comparison # is using signed chars instead of unsigned chars. # (like SunOS's default memcmp thus the compat/memcmp.c) string compare "\x80" "@" @@ -156,10 +156,10 @@ foreach {tname tbody tresult tcode} { {-nocase null strings} { string compare -nocase foo "" } 1 {} - {with length, unequal strings} { + {with length, unequal strings, partial first string} { string compare -length 2 abc abde } 0 {} - {with length, unequal strings} { + {with length, unequal strings 2, full first string} { string compare -length 2 ab abde } 0 {} {with NUL character vs. other ASCII} { |