diff options
author | dgp <dgp@users.sourceforge.net> | 2008-09-29 16:03:27 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2008-09-29 16:03:27 (GMT) |
commit | a3e470a520e59549b32c105f2aa0234c30eac772 (patch) | |
tree | be3fc321fed687e92451501bc8e509c83bde8196 /tests/fileName.test | |
parent | f47fa38944c02518936f12a7bf883cb48b7feca8 (diff) | |
download | tcl-a3e470a520e59549b32c105f2aa0234c30eac772.zip tcl-a3e470a520e59549b32c105f2aa0234c30eac772.tar.gz tcl-a3e470a520e59549b32c105f2aa0234c30eac772.tar.bz2 |
TIP #323 IMPLEMENTATION (partial)
* doc/glob.n: Revise [glob] to accept zero patterns.
* generic/tclFileName.c:
* tests fileName.test:
Diffstat (limited to 'tests/fileName.test')
-rw-r--r-- | tests/fileName.test | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/fileName.test b/tests/fileName.test index 86a1b23..1d1f3ce 100644 --- a/tests/fileName.test +++ b/tests/fileName.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: fileName.test,v 1.56 2008/08/14 13:09:50 dgp Exp $ +# RCS: @(#) $Id: fileName.test,v 1.57 2008/09/29 16:03:30 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -697,16 +697,16 @@ test filename-10.24 {Tcl_TranslateFileName} -body { test filename-11.1 {Tcl_GlobCmd} -returnCodes error -body { glob -} -result {wrong # args: should be "glob ?-switch ...? name ?name ...?"} +} -result {no files matched glob patterns ""} test filename-11.2 {Tcl_GlobCmd} -returnCodes error -body { glob -gorp } -result {bad option "-gorp": must be -directory, -join, -nocomplain, -path, -tails, -types, or --} -test filename-11.3 {Tcl_GlobCmd} -returnCodes error -body { +test filename-11.3 {Tcl_GlobCmd} -body { glob -nocomplai -} -result {wrong # args: should be "glob ?-switch ...? name ?name ...?"} -test filename-11.4 {Tcl_GlobCmd} -returnCodes error -body { +} -result {} +test filename-11.4 {Tcl_GlobCmd} -body { glob -nocomplain -} -result {wrong # args: should be "glob ?-switch ...? name ?name ...?"} +} -result {} test filename-11.5 {Tcl_GlobCmd} -returnCodes error -body { glob -nocomplain * ~xyqrszzz } -result {user "xyqrszzz" doesn't exist} |