diff options
author | vincentdarley <vincentdarley> | 2004-05-19 16:56:35 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2004-05-19 16:56:35 (GMT) |
commit | e8f6e134d9fe78331b2ee9696941ad0d20683403 (patch) | |
tree | 94dde45090003bf42f08259bde76226467fb2e62 /tests | |
parent | 645435663a5c2ba8dcdc3be20f50410cae48a629 (diff) | |
download | tcl-e8f6e134d9fe78331b2ee9696941ad0d20683403.zip tcl-e8f6e134d9fe78331b2ee9696941ad0d20683403.tar.gz tcl-e8f6e134d9fe78331b2ee9696941ad0d20683403.tar.bz2 |
fix to 'file dirname' and to fs refCount documentation
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cmdAH.test | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/cmdAH.test b/tests/cmdAH.test index c66fc82..41fef8d 100644 --- a/tests/cmdAH.test +++ b/tests/cmdAH.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: cmdAH.test,v 1.40 2004/05/17 10:38:22 vincentdarley Exp $ +# RCS: @(#) $Id: cmdAH.test,v 1.41 2004/05/19 16:56:40 vincentdarley Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2.1 @@ -367,6 +367,18 @@ test cmdAH-8.45 {Tcl_FileObjCmd: dirname} testsetplatform { set env(HOME) $temp set result } {0 /homewontexist} +test cmdAH-8.46 {Tcl_FileObjCmd: dirname} { + set f [file normalize [info nameof]] + file exists $f + set res1 [file dirname [file join $f foo/bar]] + set res2 [file dirname "${f}/foo/bar"] + if {$res1 eq $res2} { + set res "ok" + } else { + set res "file dirname problem, $res1, $res2 not equal" + } + set res +} {ok} # tail |