diff options
author | nijtmans <nijtmans> | 2008-07-13 23:15:21 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2008-07-13 23:15:21 (GMT) |
commit | ad35d9b5b7a3de682d371c0bb686815f1c5e849e (patch) | |
tree | aacaf7cde84808f89893f7542a9a079c3e8603b1 /tests/fCmd.test | |
parent | 28f4419947aa4b448501687014bb415dc7096511 (diff) | |
download | tcl-ad35d9b5b7a3de682d371c0bb686815f1c5e849e.zip tcl-ad35d9b5b7a3de682d371c0bb686815f1c5e849e.tar.gz tcl-ad35d9b5b7a3de682d371c0bb686815f1c5e849e.tar.bz2 |
more consistent wrong # arg messages: change all messages containing ?options? to the form ?-option value ...?
Diffstat (limited to 'tests/fCmd.test')
-rw-r--r-- | tests/fCmd.test | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fCmd.test b/tests/fCmd.test index 3bf6487..0216a10 100644 --- a/tests/fCmd.test +++ b/tests/fCmd.test @@ -10,7 +10,7 @@ # See the file "license.terms" for information on usage and redistribution of # this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: fCmd.test,v 1.61 2008/04/10 00:21:02 dkf Exp $ +# RCS: @(#) $Id: fCmd.test,v 1.62 2008/07/13 23:15:22 nijtmans Exp $ # if {[lsearch [namespace children] ::tcltest] == -1} { @@ -165,7 +165,7 @@ test fCmd-3.1 {FileCopyRename: FileForceOption fails} -constraints {notRoot} -bo } -returnCodes error -result {bad option "-xyz": should be -force or --} test fCmd-3.2 {FileCopyRename: not enough args} -constraints {notRoot} -body { file rename xyz -} -returnCodes error -result {wrong # args: should be "file rename ?options? source ?source ...? target"} +} -returnCodes error -result {wrong # args: should be "file rename ?-option value ...? source ?source ...? target"} test fCmd-3.3 {FileCopyRename: Tcl_TranslateFileName fails} -constraints {notRoot} -body { file rename xyz ~_totally_bogus_user } -returnCodes error -result {user "_totally_bogus_user" doesn't exist} @@ -351,7 +351,7 @@ test fCmd-5.1 {TclFileDeleteCmd: FileForceOption fails} -constraints {notRoot} - } -returnCodes error -result {bad option "-xyz": should be -force or --} test fCmd-5.2 {TclFileDeleteCmd: not enough args} -constraints {notRoot} -body { file delete -force -force -} -returnCodes error -result {wrong # args: should be "file delete ?options? file ?file ...?"} +} -returnCodes error -result {wrong # args: should be "file delete ?-option value ...? file ?file ...?"} test fCmd-5.3 {TclFileDeleteCmd: 1 file} {notRoot} { cleanup createfile tf1 |