aboutsummaryrefslogtreecommitdiff
path: root/tests/glob.test
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2014-11-28 13:18:49 +1000
committerSteve Bennett <steveb@workware.net.au>2014-11-28 15:37:58 +1000
commit9907054f8324beadc0c55b21bf95cb1a16bd8402 (patch)
treea117aadc9f5573cab391bc454abdc5d40cec3bf4 /tests/glob.test
parent4a1c716c9db7f4348513168febc1ea1266bf4b3a (diff)
downloadjimtcl-9907054f8324beadc0c55b21bf95cb1a16bd8402.zip
jimtcl-9907054f8324beadc0c55b21bf95cb1a16bd8402.tar.gz
jimtcl-9907054f8324beadc0c55b21bf95cb1a16bd8402.tar.bz2
glob: bug fixes and Tcl compatibility
Fix the case where the pattern/filename contains a space Respect the —tails option, but generate an error if -types is given. Change the error message on no match to be Tcl-compatible Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/glob.test')
-rw-r--r--tests/glob.test6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/glob.test b/tests/glob.test
index 9bbdcd8..86c0dc8 100644
--- a/tests/glob.test
+++ b/tests/glob.test
@@ -90,7 +90,7 @@ test glob-1.2 {Simple} {
test glob-1.3 {Simple} -returnCodes error -body {
lsort [glob x*]
-} -result {no files matched glob patterns}
+} -result {no files matched glob pattern "x*"}
test glob-1.4 {Simple} -returnCodes error -body {
lsort [glob]
@@ -121,11 +121,11 @@ test glob-2.5 {Glob match files containing braced brackets} -returnCodes ok -bod
} -result [list tmp/close\]bracket tmp/open\[bracket]
test glob-3.1 {Directory option} -returnCodes ok -body {
- lsort [glob -dir tmp *]
+ lsort [glob -dir tmp -tails *]
} -result [list close\]bracket close\}brace open\[bracket open\{brace]
test glob-3.2 {Directory option} -returnCodes ok -body {
- lsort [glob -dir tmp *close*]
+ lsort [glob -dir tmp -tails *close*]
} -result [list close\]bracket close\}brace]
testreport