diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2014-06-17 14:30:06 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2014-06-17 14:30:06 (GMT) |
commit | d27ff0c78862fc1652325b8c27e0882aa772171f (patch) | |
tree | 8f39f23145f82d7c131c79685ec6501399225d4d /tests/string.test | |
parent | 946600db937b025964117d8aaa11a9e27f96e9aa (diff) | |
download | tcl-d27ff0c78862fc1652325b8c27e0882aa772171f.zip tcl-d27ff0c78862fc1652325b8c27e0882aa772171f.tar.gz tcl-d27ff0c78862fc1652325b8c27e0882aa772171f.tar.bz2 |
[f0f876c141] Improve consistency in error messages.
Diffstat (limited to 'tests/string.test')
-rw-r--r-- | tests/string.test | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/string.test b/tests/string.test index cf658a2..a8a83d9 100644 --- a/tests/string.test +++ b/tests/string.test @@ -1801,8 +1801,8 @@ test string-26.7 {tcl::prefix} -body { tcl::prefix match -exact {apa bepa cepa depa} be } -returnCodes 1 -result {bad option "be": must be apa, bepa, cepa, or depa} test string-26.8 {tcl::prefix} -body { - tcl::prefix match -message switch {apa bepa bear depa} be -} -returnCodes 1 -result {ambiguous switch "be": must be apa, bepa, bear, or depa} + tcl::prefix match -message wombat {apa bepa bear depa} be +} -returnCodes 1 -result {ambiguous wombat "be": must be apa, bepa, bear, or depa} test string-26.9 {tcl::prefix} -body { tcl::prefix match -error {} {apa bepa bear depa} be } -returnCodes 0 -result {} |