summaryrefslogtreecommitdiffstats
path: root/tests/string.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2012-08-04 07:46:48 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2012-08-04 07:46:48 (GMT)
commit26779f588a5178e773c4effc1c1ba604e9dda9fb (patch)
tree651f5be6f444e7c4b4fb789d3f11e9e608cd5085 /tests/string.test
parentaa8f3c2fc3166ccdb25c69c648c92c6a2b3b0aa2 (diff)
parent24ef33dc101a3e9114318b884c1e99d792f4739d (diff)
downloadtcl-dkf_alias_encoding.zip
tcl-dkf_alias_encoding.tar.gz
tcl-dkf_alias_encoding.tar.bz2
Diffstat (limited to 'tests/string.test')
-rw-r--r--tests/string.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/string.test b/tests/string.test
index b3326ae..e86c0de 100644
--- a/tests/string.test
+++ b/tests/string.test
@@ -17,6 +17,9 @@ 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] != {}}]
@@ -1773,10 +1776,10 @@ test string-26.3.1 {tcl::prefix, bad args} -body {
} -returnCodes 1 -result {error options must have an even number of elements}
test string-26.3.2 {tcl::prefix, bad args} -body {
tcl::prefix match -error str1 str2
-} -returnCodes 1 -result {missing error options}
+} -returnCodes 1 -result {missing value for -error}
test string-26.4 {tcl::prefix, bad args} -body {
tcl::prefix match -message str1 str2
-} -returnCodes 1 -result {missing message}
+} -returnCodes 1 -result {missing value for -message}
test string-26.5 {tcl::prefix} {
tcl::prefix match {apa bepa cepa depa} cepa
} cepa