summaryrefslogtreecommitdiffstats
path: root/tests/stringComp.test
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2012-11-19 22:10:10 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2012-11-19 22:10:10 (GMT)
commit884171d33416e69905bbb16e8734dd1d760ed08a (patch)
tree9790caf5f3e563afb49a9b98f35fe6c8f92fb8df /tests/stringComp.test
parent62dfabe93c4955b1796d24929064c165b4ad66a1 (diff)
parent25f2c03d591234cedcf563e337feb38c969f511f (diff)
downloadtcl-884171d33416e69905bbb16e8734dd1d760ed08a.zip
tcl-884171d33416e69905bbb16e8734dd1d760ed08a.tar.gz
tcl-884171d33416e69905bbb16e8734dd1d760ed08a.tar.bz2
merge trunk
Diffstat (limited to 'tests/stringComp.test')
-rw-r--r--tests/stringComp.test14
1 files changed, 11 insertions, 3 deletions
diff --git a/tests/stringComp.test b/tests/stringComp.test
index 56fb69d..9e00ce7 100644
--- a/tests/stringComp.test
+++ b/tests/stringComp.test
@@ -26,7 +26,7 @@ catch [list package require -exact Tcltest [info patchlevel]]
# Some tests require the testobj command
testConstraint testobj [expr {[info commands testobj] != {}}]
-
+
test stringComp-1.1 {error conditions} {
proc foo {} {string gorp a b}
list [catch {foo} msg] $msg
@@ -677,7 +677,11 @@ test stringComp-11.54 {string match, failure} {
} {0 1 1 1 0 0}
## string range
-## not yet bc
+test stringComp-12.1 {Bug 3588366: end-offsets before start} {
+ apply {s {
+ string range $s 0 end-5
+ }} 12345
+} {}
## string repeat
## not yet bc
@@ -699,8 +703,12 @@ test stringComp-11.54 {string match, failure} {
## string word*
## not yet bc
-
+
# cleanup
catch {rename foo {}}
::tcltest::cleanupTests
return
+
+# Local Variables:
+# mode: tcl
+# End: