summaryrefslogtreecommitdiffstats
path: root/tests/stringComp.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-01-19 13:36:57 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-01-19 13:36:57 (GMT)
commit773c4c75ee2ec9d60766f09ced30a5fef6d812c6 (patch)
treea082b35638d63f5377898996bb748137c0ca382b /tests/stringComp.test
parent357b7ce73369bce4e0b88aaa87e0b8a2c0eaa853 (diff)
parent0c7be9daeb83147f81ecd891b80398293c36e92a (diff)
downloadtcl-773c4c75ee2ec9d60766f09ced30a5fef6d812c6.zip
tcl-773c4c75ee2ec9d60766f09ced30a5fef6d812c6.tar.gz
tcl-773c4c75ee2ec9d60766f09ced30a5fef6d812c6.tar.bz2
merge trunk
Diffstat (limited to 'tests/stringComp.test')
-rw-r--r--tests/stringComp.test17
1 files changed, 14 insertions, 3 deletions
diff --git a/tests/stringComp.test b/tests/stringComp.test
index ff18819..9e00ce7 100644
--- a/tests/stringComp.test
+++ b/tests/stringComp.test
@@ -20,10 +20,13 @@ if {[lsearch [namespace children] ::tcltest] == -1} {
namespace import -force ::tcltest::*
}
+::tcltest::loadTestedCommands
+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
@@ -674,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
@@ -696,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: