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

📄 filename.test

📁 linux系统下的音频通信
💻 TEST
📖 第 1 页 / 共 3 页
字号:
# This file tests the filename manipulation routines.## This file contains a collection of tests for one or more of the Tcl# built-in commands.  Sourcing this file into Tcl runs the tests and# generates output for errors.  No output means no errors were found.## Copyright (c) 1995-1996 Sun Microsystems, Inc.## See the file "license.terms" for information on usage and redistribution# of this file, and for a DISCLAIMER OF ALL WARRANTIES.## SCCS: @(#) fileName.test 1.31 97/08/19 18:45:07if {[string compare test [info procs test]] == 1} then {source defs}if {[info commands testsetplatform] == {}} {    puts "This application hasn't been compiled with the \"testsetplatform\""    puts "command, so I can't test the filename conversion procedures."    return } global envset platform [testgetplatform]test filename-1.1 {Tcl_GetPathType: unix} {    testsetplatform unix    file pathtype /} absolutetest filename-1.2 {Tcl_GetPathType: unix} {    testsetplatform unix    file pathtype /foo} absolutetest filename-1.3 {Tcl_GetPathType: unix} {    testsetplatform unix    file pathtype foo} relativetest filename-1.4 {Tcl_GetPathType: unix} {    testsetplatform unix    file pathtype c:/foo} relativetest filename-1.5 {Tcl_GetPathType: unix} {    testsetplatform unix    file pathtype ~} absolutetest filename-1.6 {Tcl_GetPathType: unix} {    testsetplatform unix    file pathtype ~/foo} absolutetest filename-1.7 {Tcl_GetPathType: unix} {    testsetplatform unix    file pathtype ~foo} absolutetest filename-1.8 {Tcl_GetPathType: unix} {    testsetplatform unix    file pathtype ./~foo} relativetest filename-2.1 {Tcl_GetPathType: mac, denerate names} {    testsetplatform mac    file pathtype /} relativetest filename-2.2 {Tcl_GetPathType: mac, denerate names} {    testsetplatform mac    file pathtype /.} relativetest filename-2.3 {Tcl_GetPathType: mac, denerate names} {    testsetplatform mac    file pathtype /..} relativetest filename-2.4 {Tcl_GetPathType: mac, denerate names} {    testsetplatform mac    file pathtype //.//} relativetest filename-2.5 {Tcl_GetPathType: mac, denerate names} {    testsetplatform mac    file pathtype //.//../.} relativetest filename-2.6 {Tcl_GetPathType: mac, tilde names} {    testsetplatform mac    file pathtype ~} absolutetest filename-2.7 {Tcl_GetPathType: mac, tilde names} {    testsetplatform mac    file pathtype ~:} absolutetest filename-2.8 {Tcl_GetPathType: mac, tilde names} {    testsetplatform mac    file pathtype ~:foo} absolutetest filename-2.9 {Tcl_GetPathType: mac, tilde names} {    testsetplatform mac    file pathtype ~/} absolutetest filename-2.10 {Tcl_GetPathType: mac, tilde names} {    testsetplatform mac    file pathtype ~/foo} absolutetest filename-2.11 {Tcl_GetPathType: mac, unix-style names} {    testsetplatform mac    file pathtype /foo} absolutetest filename-2.12 {Tcl_GetPathType: mac, unix-style names} {    testsetplatform mac    file pathtype /./foo} absolutetest filename-2.13 {Tcl_GetPathType: mac, unix-style names} {    testsetplatform mac    file pathtype /..//./foo} absolutetest filename-2.14 {Tcl_GetPathType: mac, unix-style names} {    testsetplatform mac    file pathtype /foo/bar} absolutetest filename-2.15 {Tcl_GetPathType: mac, unix-style names} {    testsetplatform mac    file pathtype foo/bar} relativetest filename-2.16 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype :} relativetest filename-2.17 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype :foo} relativetest filename-2.18 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype foo:} absolutetest filename-2.19 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype foo:bar} absolutetest filename-2.20 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype :foo:bar} relativetest filename-2.21 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype ::foo:bar} relativetest filename-2.22 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype ~foo} absolutetest filename-2.23 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype :~foo} relativetest filename-2.24 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype ~foo:} absolutetest filename-2.25 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype foo/bar:} absolutetest filename-2.26 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype /foo:} absolutetest filename-2.27 {Tcl_GetPathType: mac, mac-style names} {    testsetplatform mac    file pathtype foo} relativetest filename-3.1 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype /} volumerelativetest filename-3.2 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype \\} volumerelativetest filename-3.3 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype /foo} volumerelativetest filename-3.4 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype \\foo} volumerelativetest filename-3.5 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype c:/} absolutetest filename-3.6 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype c:\\} absolutetest filename-3.7 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype c:/foo} absolutetest filename-3.8 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype c:\\foo} absolutetest filename-3.9 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype c:} volumerelativetest filename-3.10 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype c:foo} volumerelativetest filename-3.11 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype foo} relativetest filename-3.12 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype //foo/bar} absolutetest filename-3.13 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype ~foo} absolutetest filename-3.14 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype ~} absolutetest filename-3.15 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype ~/foo} absolutetest filename-3.16 {Tcl_GetPathType: windows} {    testsetplatform windows    file pathtype ./~foo} relativetest filename-4.1 {Tcl_SplitPath: unix} {    testsetplatform unix    file split /} {/}test filename-4.2 {Tcl_SplitPath: unix} {    testsetplatform unix    file split /foo} {/ foo}test filename-4.3 {Tcl_SplitPath: unix} {    testsetplatform unix    file split /foo/bar} {/ foo bar}test filename-4.4 {Tcl_SplitPath: unix} {    testsetplatform unix    file split /foo/bar/baz} {/ foo bar baz}test filename-4.5 {Tcl_SplitPath: unix} {    testsetplatform unix    file split foo/bar} {foo bar}test filename-4.6 {Tcl_SplitPath: unix} {    testsetplatform unix    file split ./foo/bar} {. foo bar}test filename-4.7 {Tcl_SplitPath: unix} {    testsetplatform unix    file split /foo/../././foo/bar} {/ foo .. . . foo bar}test filename-4.8 {Tcl_SplitPath: unix} {    testsetplatform unix    file split ../foo/bar} {.. foo bar}test filename-4.9 {Tcl_SplitPath: unix} {    testsetplatform unix    file split {}} {}test filename-4.10 {Tcl_SplitPath: unix} {    testsetplatform unix    file split .} {.}test filename-4.11 {Tcl_SplitPath: unix} {    testsetplatform unix    file split ../} {..}test filename-4.12 {Tcl_SplitPath: unix} {    testsetplatform unix    file split ../..} {.. ..}test filename-4.13 {Tcl_SplitPath: unix} {    testsetplatform unix    file split //foo} {/ foo}test filename-4.14 {Tcl_SplitPath: unix} {    testsetplatform unix    file split foo//bar} {foo bar}test filename-4.15 {Tcl_SplitPath: unix} {    testsetplatform unix    file split ~foo} {~foo}test filename-4.16 {Tcl_SplitPath: unix} {    testsetplatform unix    file split ~foo/~bar} {~foo ./~bar}test filename-4.17 {Tcl_SplitPath: unix} {    testsetplatform unix    file split ~foo/~bar/~baz} {~foo ./~bar ./~baz}test filename-4.18 {Tcl_SplitPath: unix} {    testsetplatform unix    file split foo/bar~/baz} {foo bar~ baz}test filename-5.1 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a:b} {a: b}test filename-5.2 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a:b:c} {a: b c}test filename-5.3 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a:b:c:} {a: b c}test filename-5.4 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a:} {a:}test filename-5.5 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a::} {a: ::}test filename-5.6 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a:::} {a: :: ::}test filename-5.7 {Tcl_SplitPath: mac} {    testsetplatform mac    file split :a} {a}test filename-5.8 {Tcl_SplitPath: mac} {    testsetplatform mac    file split :a::} {a ::}test filename-5.9 {Tcl_SplitPath: mac} {    testsetplatform mac    file split :} {:}test filename-5.10 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ::} {::}test filename-5.11 {Tcl_SplitPath: mac} {    testsetplatform mac    file split :::} {:: ::}test filename-5.12 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a:::b} {a: :: :: b}test filename-5.13 {Tcl_SplitPath: mac} {    testsetplatform mac    file split /a:b} {/a: b}test filename-5.14 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ~:} {~:}test filename-5.15 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ~/:} {~/:}test filename-5.16 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ~:foo} {~: foo}test filename-5.17 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ~/foo} {~: foo}test filename-5.18 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ~foo:} {~foo:}test filename-5.19 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a:~foo} {a: :~foo}test filename-5.20 {Tcl_SplitPath: mac} {    testsetplatform mac    file split /} {:/}test filename-5.21 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a:b/c} {a: :b/c}test filename-5.22 {Tcl_SplitPath: mac} {    testsetplatform mac    file split /foo} {foo:}test filename-5.23 {Tcl_SplitPath: mac} {    testsetplatform mac    file split /a/b} {a: b}test filename-5.24 {Tcl_SplitPath: mac} {    testsetplatform mac    file split /a/b/foo} {a: b foo}test filename-5.25 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a/b} {a b}test filename-5.26 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ./foo/bar} {: foo bar}test filename-5.27 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ../foo/bar} {:: foo bar}test filename-5.28 {Tcl_SplitPath: mac} {    testsetplatform mac    file split {}} {}test filename-5.29 {Tcl_SplitPath: mac} {    testsetplatform mac    file split .} {:}test filename-5.30 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ././} {: :}test filename-5.31 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ././.} {: : :}test filename-5.32 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ../} {::}test filename-5.33 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ..} {::}test filename-5.34 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ../..} {:: ::}test filename-5.35 {Tcl_SplitPath: mac} {    testsetplatform mac    file split //foo} {foo:}test filename-5.36 {Tcl_SplitPath: mac} {    testsetplatform mac    file split foo//bar} {foo bar}test filename-5.37 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ~foo} {~foo:}test filename-5.38 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ~} {~:}test filename-5.39 {Tcl_SplitPath: mac} {    testsetplatform mac    file split foo} {foo}test filename-5.40 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ~/} {~:}test filename-5.41 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ~foo/~bar} {~foo: :~bar}test filename-5.42 {Tcl_SplitPath: mac} {    testsetplatform mac    file split ~foo/~bar/~baz} {~foo: :~bar :~baz}test filename-5.43 {Tcl_SplitPath: mac} {    testsetplatform mac    file split foo/bar~/baz} {foo bar~ baz}test filename-5.44 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a/../b} {a :: b}test filename-5.45 {Tcl_SplitPath: mac} {    testsetplatform mac    file split a/../../b} {a :: :: b}

⌨️ 快捷键说明

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