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

📄 cmdah.test

📁 linux系统下的音频通信
💻 TEST
📖 第 1 页 / 共 3 页
字号:
    testsetplatform mac    file tail ~bar:foo} footest cmdAH-5.40 {Tcl_FileObjCmd: tail} {    testsetplatform mac    file tail ~bar/foo} footest cmdAH-5.41 {Tcl_FileObjCmd: tail} {    testsetplatform mac    file tail ~/foo} footest cmdAH-5.42 {Tcl_FileObjCmd: tail} {    global env    set temp $env(HOME)    set env(HOME) "/home/test"    testsetplatform unix    set result [file tail ~]    set env(HOME) $temp    set result} testtest cmdAH-5.43 {Tcl_FileObjCmd: tail} {    global env    set temp $env(HOME)    set env(HOME) "~"    testsetplatform unix    set result [file tail ~]    set env(HOME) $temp    set result} {}test cmdAH-5.44 {Tcl_FileObjCmd: tail} {    global env    set temp $env(HOME)    set env(HOME) "/home/test"    testsetplatform windows    set result [file tail ~]    set env(HOME) $temp    set result} testtest cmdAH-5.45 {Tcl_FileObjCmd: tail} {    global env    set temp $env(HOME)    set env(HOME) "/home/test"    testsetplatform mac    set result [file tail ~]    set env(HOME) $temp    set result} testtest cmdAH-5.46 {Tcl_FileObjCmd: tail} {    testsetplatform unix    file tail {f.oo\bar/baz.bat}} baz.battest cmdAH-5.47 {Tcl_FileObjCmd: tail} {    testsetplatform windows    file tail c:foo} footest cmdAH-5.48 {Tcl_FileObjCmd: tail} {    testsetplatform windows    file tail c:} {}test cmdAH-5.49 {Tcl_FileObjCmd: tail} {    testsetplatform windows    file tail c:/foo} footest cmdAH-5.50 {Tcl_FileObjCmd: tail} {    testsetplatform windows    file tail {c:/foo\bar}} bartest cmdAH-5.51 {Tcl_FileObjCmd: tail} {    testsetplatform windows    file tail {foo\bar}} bar# rootnametest cmdAH-6.1 {Tcl_FileObjCmd: rootname} {    testsetplatform unix    list [catch {file rootname a b} msg] $msg} {1 {wrong # args: should be "file rootname name"}}test cmdAH-6.2 {Tcl_FileObjCmd: rootname} {    testsetplatform unix    file rootname {}} {}test cmdAH-6.3 {Tcl_FileObjCmd: rootname} {    testsetplatform unix    file ro foo} footest cmdAH-6.4 {Tcl_FileObjCmd: rootname} {    testsetplatform unix    file rootname foo.} footest cmdAH-6.5 {Tcl_FileObjCmd: rootname} {    testsetplatform unix    file rootname .foo} {}test cmdAH-6.6 {Tcl_FileObjCmd: rootname} {    testsetplatform unix    file rootname abc.def} abctest cmdAH-6.7 {Tcl_FileObjCmd: rootname} {    testsetplatform unix    file rootname abc.def.ghi} abc.deftest cmdAH-6.8 {Tcl_FileObjCmd: rootname} {    testsetplatform unix    file rootname a/b/c.d} a/b/ctest cmdAH-6.9 {Tcl_FileObjCmd: rootname} {    testsetplatform unix    file rootname a/b.c/d} a/b.c/dtest cmdAH-6.10 {Tcl_FileObjCmd: rootname} {    testsetplatform unix    file rootname a/b.c/} a/b.c/test cmdAH-6.11 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file ro foo} footest cmdAH-6.12 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file rootname {}} {}test cmdAH-6.13 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file rootname foo.} footest cmdAH-6.14 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file rootname .foo} {}test cmdAH-6.15 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file rootname abc.def} abctest cmdAH-6.16 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file rootname abc.def.ghi} abc.deftest cmdAH-6.17 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file rootname a:b:c.d} a:b:ctest cmdAH-6.18 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file rootname a:b.c:d} a:b.c:dtest cmdAH-6.19 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file rootname a/b/c.d} a/b/ctest cmdAH-6.20 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file rootname a/b.c/d} a/b.c/dtest cmdAH-6.21 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file rootname /a.b} /atest cmdAH-6.22 {Tcl_FileObjCmd: rootname} {    testsetplatform mac    file rootname foo.c:} foo.c:test cmdAH-6.23 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file rootname {}} {}test cmdAH-6.24 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file ro foo} footest cmdAH-6.25 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file rootname foo.} footest cmdAH-6.26 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file rootname .foo} {}test cmdAH-6.27 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file rootname abc.def} abctest cmdAH-6.28 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file rootname abc.def.ghi} abc.deftest cmdAH-6.29 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file rootname a/b/c.d} a/b/ctest cmdAH-6.30 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file rootname a/b.c/d} a/b.c/dtest cmdAH-6.31 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file rootname a\\b.c\\} a\\b.c\\test cmdAH-6.32 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file rootname a\\b\\c.d} a\\b\\ctest cmdAH-6.33 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file rootname a\\b.c\\d} a\\b.c\\dtest cmdAH-6.34 {Tcl_FileObjCmd: rootname} {    testsetplatform windows    file rootname a\\b.c\\} a\\b.c\\set num 35foreach outer { {} a .a a. a.a } {  foreach inner { {} a .a a. a.a } {    set thing [format %s/%s $outer $inner];   test cmdAH-6.$num {Tcl_FileObjCmd: rootname and extension options} {	testsetplatform unix	format %s%s [file rootname $thing] [file ext $thing]    } $thing    set num [expr $num+1]  }}# extensiontest cmdAH-7.1 {Tcl_FileObjCmd: extension} {    testsetplatform unix    list [catch {file extension a b} msg] $msg} {1 {wrong # args: should be "file extension name"}}test cmdAH-7.2 {Tcl_FileObjCmd: extension} {    testsetplatform unix    file extension {}} {}test cmdAH-7.3 {Tcl_FileObjCmd: extension} {    testsetplatform unix    file ext foo} {}test cmdAH-7.4 {Tcl_FileObjCmd: extension} {    testsetplatform unix    file extension foo.} .test cmdAH-7.5 {Tcl_FileObjCmd: extension} {    testsetplatform unix    file extension .foo} .footest cmdAH-7.6 {Tcl_FileObjCmd: extension} {    testsetplatform unix    file extension abc.def} .deftest cmdAH-7.7 {Tcl_FileObjCmd: extension} {    testsetplatform unix    file extension abc.def.ghi} .ghitest cmdAH-7.8 {Tcl_FileObjCmd: extension} {    testsetplatform unix    file extension a/b/c.d} .dtest cmdAH-7.9 {Tcl_FileObjCmd: extension} {    testsetplatform unix    file extension a/b.c/d} {}test cmdAH-7.10 {Tcl_FileObjCmd: extension} {    testsetplatform unix    file extension a/b.c/} {}test cmdAH-7.11 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file ext foo} {}test cmdAH-7.12 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file extension {}} {}test cmdAH-7.13 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file extension foo.} .test cmdAH-7.14 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file extension .foo} .footest cmdAH-7.15 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file extension abc.def} .deftest cmdAH-7.16 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file extension abc.def.ghi} .ghitest cmdAH-7.17 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file extension a:b:c.d} .dtest cmdAH-7.18 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file extension a:b.c:d} {}test cmdAH-7.19 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file extension a/b/c.d} .dtest cmdAH-7.20 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file extension a/b.c/d} {}test cmdAH-7.21 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file extension /a.b} .btest cmdAH-7.22 {Tcl_FileObjCmd: extension} {    testsetplatform mac    file extension foo.c:} {}test cmdAH-7.23 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file extension {}} {}test cmdAH-7.24 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file ext foo} {}test cmdAH-7.25 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file extension foo.} .test cmdAH-7.26 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file extension .foo} .footest cmdAH-7.27 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file extension abc.def} .deftest cmdAH-7.28 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file extension abc.def.ghi} .ghitest cmdAH-7.29 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file extension a/b/c.d} .dtest cmdAH-7.30 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file extension a/b.c/d} {}test cmdAH-7.31 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file extension a\\b.c\\} {}test cmdAH-7.32 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file extension a\\b\\c.d} .dtest cmdAH-7.33 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file extension a\\b.c\\d} {}test cmdAH-7.34 {Tcl_FileObjCmd: extension} {    testsetplatform windows    file extension a\\b.c\\} {}set num 35foreach value {a..b a...b a.c..b ..b} result {..b ...b ..b ..b} {    foreach p {unix mac windows} {;	test cmdAH-7.$num {Tcl_FileObjCmd: extension} "	    testsetplatform $p	    file extension $value	" $result	incr num    }}# pathtypetest cmdAH-8.1 {Tcl_FileObjCmd: pathtype} {    testsetplatform unix    list [catch {file pathtype a b} msg] $msg} {1 {wrong # args: should be "file pathtype name"}}test cmdAH-8.2 {Tcl_FileObjCmd: pathtype} {    testsetplatform unix    file pathtype /a} absolutetest cmdAH-8.3 {Tcl_FileObjCmd: pathtype} {    testsetplatform unix    file p a} relativetest cmdAH-8.4 {Tcl_FileObjCmd: pathtype} {    testsetplatform windows    file pathtype c:a} volumerelative# splittest cmdAH-9.1 {Tcl_FileObjCmd: split} {    testsetplatform unix    list [catch {file split a b} msg] $msg} {1 {wrong # args: should be "file split name"}}test cmdAH-9.2 {Tcl_FileObjCmd: split} {    testsetplatform unix    file split a} atest cmdAH-9.3 {Tcl_FileObjCmd: split} {    testsetplatform unix    file split a/b} {a b}# jointest cmdAH-10.1 {Tcl_FileObjCmd: join} {    testsetplatform unix    file join a} atest cmdAH-10.2 {Tcl_FileObjCmd: join} {    testsetplatform unix    file join a b} a/btest cmdAH-10.3 {Tcl_FileObjCmd: join} {    testsetplatform unix    file join a b c d} a/b/c/d# error handling of Tcl_TranslateFileNametest cmdAH-11.1 {Tcl_FileObjCmd} {    testsetplatform unix    list [catch {file atime ~_bad_user} msg] $msg

⌨️ 快捷键说明

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