⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 filename.test

📁 tcl是工具命令语言
💻 TEST
📖 第 1 页 / 共 5 页
字号:
    file join a :: b} {:a::b}test filename-8.7 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join a :: :: b} {:a:::b}test filename-8.8 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join a ::: b} {:a:::b}test filename-8.9 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join a: b:} {b:}test filename-8.10 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join /a/b} {a:b}test filename-8.11 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join /a/b c/d} {a:b:c:d}test filename-8.12 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join /a/b :c:d} {a:b:c:d}test filename-8.13 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join ~ foo} {~:foo}test filename-8.14 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join :: ::} {:::}test filename-8.15 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join a: ::} {a::}test filename-8.16 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join a {} b} {:a:b}test filename-8.17 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join a::: b} {a:::b}test filename-8.18 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join a : : :} {:a}test filename-8.19 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join :} {:}test filename-8.20 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join : a} {:a}test filename-8.21 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join a: :b/c} {a:b/c}test filename-8.22 {Tcl_JoinPath: mac} {testsetplatform} {    testsetplatform mac    file join :a :b/c} {:a:b/c}test filename-9.1 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join a b} {a/b}test filename-9.2 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join /a b} {/a/b}test filename-9.3 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join /a /b} {/b}test filename-9.4 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join c: foo} {c:foo}test filename-9.5 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join c:/ foo} {c:/foo}test filename-9.6 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join c:\\bar foo} {c:/bar/foo}test filename-9.7 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join /foo c:bar} {c:bar}test filename-9.8 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join ///host//share dir} {//host/share/dir}test filename-9.9 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join ~ foo} {~/foo}test filename-9.10 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join ~/~foo} {~/~foo}test filename-9.11 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join ~ ./~foo} {~/~foo}test filename-9.12 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join / ~foo} {~foo}test filename-9.13 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join ./a/ b c} {./a/b/c}test filename-9.14 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join ./~a/ b c} {./~a/b/c}test filename-9.15 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join // host share path} {/host/share/path}test filename-9.16 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join foo . bar} {foo/./bar}test filename-9.17 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join foo .. bar} {foo/../bar}test filename-9.18 {Tcl_JoinPath: win} {testsetplatform} {    testsetplatform win    file join foo/./bar} {foo/./bar}test filename-10.1 {Tcl_TranslateFileName} {testsetplatform} {    testsetplatform unix    list [catch {testtranslatefilename foo} msg] $msg} {0 foo}test filename-10.2 {Tcl_TranslateFileName} {testsetplatform} {    testsetplatform windows    list [catch {testtranslatefilename {c:/foo}} msg] $msg} {0 {c:\foo}}test filename-10.3 {Tcl_TranslateFileName} {testsetplatform} {    testsetplatform windows    list [catch {testtranslatefilename {c:/\\foo/}} msg] $msg} {0 {c:\foo}}test filename-10.4 {Tcl_TranslateFileName} {testsetplatform} {    testsetplatform mac    list [catch {testtranslatefilename foo} msg] $msg} {0 :foo}test filename-10.5 {Tcl_TranslateFileName} {testsetplatform} {    testsetplatform mac    list [catch {testtranslatefilename :~foo} msg] $msg} {0 :~foo}test filename-10.6 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "/home/test"    testsetplatform unix    set result [list [catch {testtranslatefilename ~/foo} msg] $msg]    set env(HOME) $temp    set result} {0 /home/test/foo}test filename-10.7 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    unset env(HOME)    testsetplatform unix    set result [list [catch {testtranslatefilename ~/foo} msg] $msg]    set env(HOME) $temp    set result} {1 {couldn't find HOME environment variable to expand path}}test filename-10.8 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "/home/test"    testsetplatform unix    set result [list [catch {testtranslatefilename ~} msg] $msg]    set env(HOME) $temp    set result} {0 /home/test}test filename-10.9 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "/home/test/"    testsetplatform unix    set result [list [catch {testtranslatefilename ~} msg] $msg]    set env(HOME) $temp    set result} {0 /home/test}test filename-10.10 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "/home/test/"    testsetplatform unix    set result [list [catch {testtranslatefilename ~/foo} msg] $msg]    set env(HOME) $temp    set result} {0 /home/test/foo}test filename-10.11 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "Root:"    testsetplatform mac    set result [list [catch {testtranslatefilename ~/foo} msg] $msg]    set env(HOME) $temp    set result} {0 Root:foo}test filename-10.12 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "Root:home"    testsetplatform mac    set result [list [catch {testtranslatefilename ~/foo} msg] $msg]    set env(HOME) $temp    set result} {0 Root:home:foo}test filename-10.13 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "Root:home"    testsetplatform mac    set result [list [catch {testtranslatefilename ~::foo} msg] $msg]    set env(HOME) $temp    set result} {0 Root:home::foo}test filename-10.14 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "Root:home"    testsetplatform mac    set result [list [catch {testtranslatefilename ~} msg] $msg]    set env(HOME) $temp    set result} {0 Root:home}test filename-10.15 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "Root:home:"    testsetplatform mac    set result [list [catch {testtranslatefilename ~::foo} msg] $msg]    set env(HOME) $temp    set result} {0 Root:home::foo}test filename-10.16 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "Root:home::"    testsetplatform mac    set result [list [catch {testtranslatefilename ~::foo} msg] $msg]    set env(HOME) $temp    set result} {0 Root:home:::foo}test filename-10.17 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "\\home\\"    testsetplatform windows    set result [list [catch {testtranslatefilename ~/foo} msg] $msg]    set env(HOME) $temp    set result} {0 {\home\foo}}test filename-10.18 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "\\home\\"    testsetplatform windows    set result [list [catch {testtranslatefilename ~/foo\\bar} msg] $msg]    set env(HOME) $temp    set result} {0 {\home\foo\bar}}test filename-10.19 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "c:"    testsetplatform windows    set result [list [catch {testtranslatefilename ~/foo} msg] $msg]    set env(HOME) $temp    set result} {0 c:foo}test filename-10.20 {Tcl_TranslateFileName} {testtranslatefilename} {    list [catch {testtranslatefilename ~blorp/foo} msg] $msg} {1 {user "blorp" doesn't exist}}test filename-10.21 {Tcl_TranslateFileName} {testsetplatform} {    global env    set temp $env(HOME)    set env(HOME) "c:\\"    testsetplatform windows    set result [list [catch {testtranslatefilename ~/foo} msg] $msg]    set env(HOME) $temp    set result} {0 {c:\foo}}test filename-10.22 {Tcl_TranslateFileName} {testsetplatform} {    testsetplatform windows    list [catch {testtranslatefilename foo//bar} msg] $msg} {0 {foo\bar}}if {[tcltest::testConstraint testsetplatform]} {    testsetplatform $platform}test filename-10.23 {Tcl_TranslateFileName} {unixOnly nonPortable} {    # this test fails if ~ouster is not /home/ouster    list [catch {testtranslatefilename ~ouster} msg] $msg} {0 /home/ouster}test filename-10.24 {Tcl_TranslateFileName} {unixOnly nonPortable} {    # this test fails if ~ouster is not /home/ouster    list [catch {testtranslatefilename ~ouster/foo} msg] $msg} {0 /home/ouster/foo}test filename-11.1 {Tcl_GlobCmd} {    list [catch {glob} msg] $msg} {1 {wrong # args: should be "glob ?switches? name ?name ...?"}}test filename-11.2 {Tcl_GlobCmd} {    list [catch {glob -gorp} msg] $msg} {1 {bad option "-gorp": must be -directory, -join, -nocomplain, -path, -tails, -types, or --}}test filename-11.3 {Tcl_GlobCmd} {    list [catch {glob -nocomplai} msg] $msg} {1 {wrong # args: should be "glob ?switches? name ?name ...?"}}test filename-11.4 {Tcl_GlobCmd} {    list [catch {glob -nocomplain} msg] $msg} {1 {wrong # args: should be "glob ?switches? name ?name ...?"}}test filename-11.5 {Tcl_GlobCmd} {    list [catch {glob -nocomplain ~xyqrszzz} msg] $msg} {0 {}}test filename-11.6 {Tcl_GlobCmd} {    list [catch {glob ~xyqrszzz} msg] $msg} {1 {user "xyqrszzz" doesn't exist}}test filename-11.7 {Tcl_GlobCmd} {    list [catch {glob -- -nocomplain} msg] $msg} {1 {no files matched glob pattern "-nocomplain"}}test filename-11.8 {Tcl_GlobCmd} {    list [catch {glob -nocomplain -- -nocomplain} msg] $msg} {0 {}}test filename-11.9 {Tcl_GlobCmd} {testsetplatform} {    testsetplatform unix    list [catch {glob ~\\xyqrszzz/bar} msg] $msg} {1 {user "\xyqrszzz" doesn't exist}}test filename-11.10 {Tcl_GlobCmd} {testsetplatform} {    testsetplatform unix    list [catch {glob -nocomplain ~\\xyqrszzz/bar} msg] $msg} {0 {}}test filename-11.11 {Tcl_GlobCmd} {testsetplatform} {    testsetplatform unix    list [catch {glob ~xyqrszzz\\/\\bar} msg] $msg} {1 {user "xyqrszzz" doesn't exist}}test filename-11.12 {Tcl_GlobCmd} {testsetplatform} {    testsetplatform unix    set home $env(HOME)    unset env(HOME)    set x [list [catch {glob ~/*} msg] $msg]    set env(HOME) $home    set x} {1 {couldn't find HOME environment variable to expand path}}if {[tcltest::testConstraint testsetplatform]} {    testsetplatform $platform}test filename-11.13 {Tcl_GlobCmd} {    list [catch {file join [lindex [glob ~] 0]} msg] $msg} [list 0 [file join $env(HOME)]]set oldpwd [pwd]set oldhome $env(HOME)cd [temporaryDirectory]set env(HOME) [pwd]file delete -force globTestfile mkdir globTest/a1/b1file mkdir globTest/a1/b2file mkdir globTest/a2/b3file mkdir globTest/a3

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -