summaryrefslogtreecommitdiffstats
path: root/tests/ioTrans.test
diff options
context:
space:
mode:
authorferrieux <ferrieux@users.sourceforge.net>2008-07-21 21:02:11 (GMT)
committerferrieux <ferrieux@users.sourceforge.net>2008-07-21 21:02:11 (GMT)
commit4ca6151924c3e7338fb1cdca30d81430477673f8 (patch)
tree5a49a31553d209c8b45882a0b0716544c8bf918e /tests/ioTrans.test
parent24289b9502c809549472c1edc7398415f51f578e (diff)
downloadtcl-4ca6151924c3e7338fb1cdca30d81430477673f8.zip
tcl-4ca6151924c3e7338fb1cdca30d81430477673f8.tar.gz
tcl-4ca6151924c3e7338fb1cdca30d81430477673f8.tar.bz2
TIP #304 implementation
Diffstat (limited to 'tests/ioTrans.test')
-rw-r--r--tests/ioTrans.test11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/ioTrans.test b/tests/ioTrans.test
index e7c7d72..1b329c3 100644
--- a/tests/ioTrans.test
+++ b/tests/ioTrans.test
@@ -11,7 +11,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: ioTrans.test,v 1.5 2008/07/19 22:50:39 nijtmans Exp $
+# RCS: @(#) $Id: ioTrans.test,v 1.6 2008/07/21 21:02:20 ferrieux Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2
@@ -115,11 +115,10 @@ eval $helperscript
test iortrans-1.0 {chan, wrong#args} {
catch {chan} msg
set msg
-} {wrong # args: should be "chan subcommand ?arg ...?"}
-test iortrans-1.1 {chan, unknown method} {
- catch {chan foo} msg
- set msg
-} {unknown or ambiguous subcommand "foo": must be blocked, close, configure, copy, create, eof, event, flush, gets, names, pending, pop, postevent, push, puts, read, seek, tell, or truncate}
+} {wrong # args: should be "chan subcommand ?argument ...?"}
+test iortrans-1.1 {chan, unknown method} -body {
+ chan foo
+} -returnCodes error -match glob -result {unknown or ambiguous subcommand "foo": must be*}
# --- --- --- --------- --------- ---------
# chan push, and method "initalize"