📄 filename.test
字号:
test filename-5.46 {Tcl_SplitPath: mac} { testsetplatform mac file split a/.././../b} {a :: : :: b}test filename-5.47 {Tcl_SplitPath: mac} { testsetplatform mac file split /../bar} {bar:}test filename-5.48 {Tcl_SplitPath: mac} { testsetplatform mac file split /./bar} {bar:}test filename-5.49 {Tcl_SplitPath: mac} { testsetplatform mac file split //.//.././bar} {bar:}test filename-5.50 {Tcl_SplitPath: mac} { testsetplatform mac file split /..} {:/..}test filename-5.51 {Tcl_SplitPath: mac} { testsetplatform mac file split //.//.././} {://.//.././}test filename-6.1 {Tcl_SplitPath: win} { testsetplatform win file split /} {/}test filename-6.2 {Tcl_SplitPath: win} { testsetplatform win file split /foo} {/ foo}test filename-6.3 {Tcl_SplitPath: win} { testsetplatform win file split /foo/bar} {/ foo bar}test filename-6.4 {Tcl_SplitPath: win} { testsetplatform win file split /foo/bar/baz} {/ foo bar baz}test filename-6.5 {Tcl_SplitPath: win} { testsetplatform win file split foo/bar} {foo bar}test filename-6.6 {Tcl_SplitPath: win} { testsetplatform win file split ./foo/bar} {. foo bar}test filename-6.7 {Tcl_SplitPath: win} { testsetplatform win file split /foo/../././foo/bar} {/ foo .. . . foo bar}test filename-6.8 {Tcl_SplitPath: win} { testsetplatform win file split ../foo/bar} {.. foo bar}test filename-6.9 {Tcl_SplitPath: win} { testsetplatform win file split {}} {}test filename-6.10 {Tcl_SplitPath: win} { testsetplatform win file split .} {.}test filename-6.11 {Tcl_SplitPath: win} { testsetplatform win file split ../} {..}test filename-6.12 {Tcl_SplitPath: win} { testsetplatform win file split ../..} {.. ..}test filename-6.13 {Tcl_SplitPath: win} { testsetplatform win file split //foo} {/ foo}test filename-6.14 {Tcl_SplitPath: win} { testsetplatform win file split foo//bar} {foo bar}test filename-6.15 {Tcl_SplitPath: win} { testsetplatform win file split /\\/foo//bar} {//foo/bar}test filename-6.16 {Tcl_SplitPath: win} { testsetplatform win file split /\\/foo//bar} {//foo/bar}test filename-6.17 {Tcl_SplitPath: win} { testsetplatform win file split /\\/foo//bar} {//foo/bar}test filename-6.18 {Tcl_SplitPath: win} { testsetplatform win file split \\\\foo\\bar} {//foo/bar}test filename-6.19 {Tcl_SplitPath: win} { testsetplatform win file split \\\\foo\\bar/baz} {//foo/bar baz}test filename-6.20 {Tcl_SplitPath: win} { testsetplatform win file split c:/foo} {c:/ foo}test filename-6.21 {Tcl_SplitPath: win} { testsetplatform win file split c:foo} {c: foo}test filename-6.22 {Tcl_SplitPath: win} { testsetplatform win file split c:} {c:}test filename-6.23 {Tcl_SplitPath: win} { testsetplatform win file split c:\\} {c:/}test filename-6.24 {Tcl_SplitPath: win} { testsetplatform win file split c:/} {c:/}test filename-6.25 {Tcl_SplitPath: win} { testsetplatform win file split c:/./..} {c:/ . ..}test filename-6.26 {Tcl_SplitPath: win} { testsetplatform win file split ~foo} {~foo}test filename-6.27 {Tcl_SplitPath: win} { testsetplatform win file split ~foo/~bar} {~foo ./~bar}test filename-6.28 {Tcl_SplitPath: win} { testsetplatform win file split ~foo/~bar/~baz} {~foo ./~bar ./~baz}test filename-6.29 {Tcl_SplitPath: win} { testsetplatform win file split foo/bar~/baz} {foo bar~ baz}test filename-6.30 {Tcl_SplitPath: win} { testsetplatform win file split c:~foo} {c: ./~foo}test filename-7.1 {Tcl_JoinPath: unix} { testsetplatform unix file join / a} {/a}test filename-7.2 {Tcl_JoinPath: unix} { testsetplatform unix file join a b} {a/b}test filename-7.3 {Tcl_JoinPath: unix} { testsetplatform unix file join /a c /b d} {/b/d}test filename-7.4 {Tcl_JoinPath: unix} { testsetplatform unix file join /} {/}test filename-7.5 {Tcl_JoinPath: unix} { testsetplatform unix file join a} {a}test filename-7.6 {Tcl_JoinPath: unix} { testsetplatform unix file join {}} {}test filename-7.7 {Tcl_JoinPath: unix} { testsetplatform unix file join /a/ b} {/a/b}test filename-7.8 {Tcl_JoinPath: unix} { testsetplatform unix file join /a// b} {/a/b}test filename-7.9 {Tcl_JoinPath: unix} { testsetplatform unix file join /a/./../. b} {/a/./.././b}test filename-7.10 {Tcl_JoinPath: unix} { testsetplatform unix file join ~ a} {~/a}test filename-7.11 {Tcl_JoinPath: unix} { testsetplatform unix file join ~a ~b} {~b}test filename-7.12 {Tcl_JoinPath: unix} { testsetplatform unix file join ./~a b} {./~a/b}test filename-7.13 {Tcl_JoinPath: unix} { testsetplatform unix file join ./~a ~b} {~b}test filename-7.14 {Tcl_JoinPath: unix} { testsetplatform unix file join ./~a ./~b} {./~a/~b}test filename-7.15 {Tcl_JoinPath: unix} { testsetplatform unix file join a . b} {a/./b}test filename-7.16 {Tcl_JoinPath: unix} { testsetplatform unix file join a . ./~b} {a/./~b}test filename-7.17 {Tcl_JoinPath: unix} { testsetplatform unix file join //a b} {/a/b}test filename-7.18 {Tcl_JoinPath: unix} { testsetplatform unix file join /// a b} {/a/b}test filename-8.1 {Tcl_JoinPath: mac} { testsetplatform mac file join a b} {:a:b}test filename-8.2 {Tcl_JoinPath: mac} { testsetplatform mac file join :a b} {:a:b}test filename-8.3 {Tcl_JoinPath: mac} { testsetplatform mac file join a b:} {b:}test filename-8.4 {Tcl_JoinPath: mac} { testsetplatform mac file join a: :b} {a:b}test filename-8.5 {Tcl_JoinPath: mac} { testsetplatform mac file join a: :b:} {a:b}test filename-8.6 {Tcl_JoinPath: mac} { testsetplatform mac file join a :: b} {:a::b}test filename-8.7 {Tcl_JoinPath: mac} { testsetplatform mac file join a :: :: b} {:a:::b}test filename-8.8 {Tcl_JoinPath: mac} { testsetplatform mac file join a ::: b} {:a:::b}test filename-8.9 {Tcl_JoinPath: mac} { testsetplatform mac file join a: b:} {b:}test filename-8.10 {Tcl_JoinPath: mac} { testsetplatform mac file join /a/b} {a:b}test filename-8.11 {Tcl_JoinPath: mac} { testsetplatform mac file join /a/b c/d} {a:b:c:d}test filename-8.12 {Tcl_JoinPath: mac} { testsetplatform mac file join /a/b :c:d} {a:b:c:d}test filename-8.13 {Tcl_JoinPath: mac} { testsetplatform mac file join ~ foo} {~:foo}test filename-8.14 {Tcl_JoinPath: mac} { testsetplatform mac file join :: ::} {:::}test filename-8.15 {Tcl_JoinPath: mac} { testsetplatform mac file join a: ::} {a::}test filename-8.16 {Tcl_JoinPath: mac} { testsetplatform mac file join a {} b} {:a:b}test filename-8.17 {Tcl_JoinPath: mac} { testsetplatform mac file join a::: b} {a:::b}test filename-8.18 {Tcl_JoinPath: mac} { testsetplatform mac file join a : : :} {:a}test filename-8.19 {Tcl_JoinPath: mac} { testsetplatform mac file join :} {:}test filename-8.20 {Tcl_JoinPath: mac} { testsetplatform mac file join : a} {:a}test filename-8.21 {Tcl_JoinPath: mac} { testsetplatform mac file join a: :b/c} {a:b/c}test filename-8.22 {Tcl_JoinPath: mac} { testsetplatform mac file join :a :b/c} {:a:b/c}test filename-9.1 {Tcl_JoinPath: win} { testsetplatform win file join a b} {a/b}test filename-9.2 {Tcl_JoinPath: win} { testsetplatform win file join /a b} {/a/b}test filename-9.3 {Tcl_JoinPath: win} { testsetplatform win file join /a /b} {/b}test filename-9.4 {Tcl_JoinPath: win} { testsetplatform win file join c: foo} {c:foo}test filename-9.5 {Tcl_JoinPath: win} { testsetplatform win file join c:/ foo} {c:/foo}test filename-9.6 {Tcl_JoinPath: win} { testsetplatform win file join c:\\bar foo} {c:/bar/foo}test filename-9.7 {Tcl_JoinPath: win} { testsetplatform win file join /foo c:bar} {c:bar}test filename-9.8 {Tcl_JoinPath: win} { testsetplatform win file join ///host//share dir} {//host/share/dir}test filename-9.9 {Tcl_JoinPath: win} { testsetplatform win file join ~ foo} {~/foo}test filename-9.10 {Tcl_JoinPath: win} { testsetplatform win file join ~/~foo} {~/~foo}test filename-9.11 {Tcl_JoinPath: win} { testsetplatform win file join ~ ./~foo} {~/~foo}test filename-9.12 {Tcl_JoinPath: win} { testsetplatform win file join / ~foo} {~foo}test filename-9.13 {Tcl_JoinPath: win} { testsetplatform win file join ./a/ b c} {./a/b/c}test filename-9.14 {Tcl_JoinPath: win} { testsetplatform win file join ./~a/ b c} {./~a/b/c}test filename-9.15 {Tcl_JoinPath: win} { testsetplatform win file join // host share path} {/host/share/path}test filename-9.16 {Tcl_JoinPath: win} { testsetplatform win file join foo . bar} {foo/./bar}test filename-9.17 {Tcl_JoinPath: win} { testsetplatform win file join foo .. bar} {foo/../bar}test filename-9.18 {Tcl_JoinPath: win} { testsetplatform win file join foo/./bar} {foo/./bar}test filename-10.1 {Tcl_TranslateFileName} { testsetplatform unix list [catch {testtranslatefilename foo} msg] $msg} {0 foo}test filename-10.2 {Tcl_TranslateFileName} { testsetplatform windows list [catch {testtranslatefilename {c:/foo}} msg] $msg} {0 {c:\foo}}test filename-10.3 {Tcl_TranslateFileName} { testsetplatform windows list [catch {testtranslatefilename {c:/\\foo/}} msg] $msg} {0 {c:\foo}}test filename-10.4 {Tcl_TranslateFileName} { testsetplatform mac list [catch {testtranslatefilename foo} msg] $msg} {0 :foo}test filename-10.5 {Tcl_TranslateFileName} { testsetplatform mac list [catch {testtranslatefilename :~foo} msg] $msg} {0 :~foo}test filename-10.6 {Tcl_TranslateFileName} { 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} { 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} { 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} { 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} { 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} { 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} { 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} { 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} { 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} { global env
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -