summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2019-02-14 20:05:11 (GMT)
committerdgp <dgp@users.sourceforge.net>2019-02-14 20:05:11 (GMT)
commita475e0b1ee3d2716a524c722064a7e3e404d3e38 (patch)
tree41d255a37c3dbe955fb413564812575b6bdd4c13 /tests/string.test
parentcc6faa155b3ac525cab5b017159361b62c4a9c6a (diff)
parent5fd6fc8ae4d88e17f66c93e521c89fba72b77fd4 (diff)
downloadtcl-a475e0b1ee3d2716a524c722064a7e3e404d3e38.zip
tcl-a475e0b1ee3d2716a524c722064a7e3e404d3e38.tar.gz
tcl-a475e0b1ee3d2716a524c722064a7e3e404d3e38.tar.bz2
merge 8.7
Diffstat (limited to 'tests/string.test')
-rw-r--r--tests/string.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/string.test b/tests/string.test
index a8453ca..e937ab4 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -421,6 +421,24 @@ test string-4.16.$noComp {string first, normal string vs pure unicode string} {
run {list [representationpoke $s] [representationpoke $m] \
[string first $m $s]}
} {{string 1} {string 0} 2}
+test string-4.17.$noComp {string first, corner case} {
+ run {string first a aaa 4294967295}
+} {-1}
+test string-4.18.$noComp {string first, corner case} {
+ run {string first a aaa -1}
+} {0}
+test string-4.19.$noComp {string first, corner case} {
+ run {string first a aaa end-5}
+} {0}
+test string-4.20.$noComp {string last, corner case} {
+ run {string last a aaa 4294967295}
+} {2}
+test string-4.21.$noComp {string last, corner case} {
+ run {string last a aaa -1}
+} {-1}
+test string-4.22.$noComp {string last, corner case} {
+ run {string last a aaa end-5}
+} {-1}
test string-5.1.$noComp {string index} {
list [catch {run {string index}} msg] $msg