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

📄 binary.test

📁 linux系统下的音频通信
💻 TEST
📖 第 1 页 / 共 4 页
字号:
    binary format i1 $a} P\x00\x00\x00test binary-12.1 {Tcl_BinaryObjCmd: format} {    list [catch {binary format I} msg] $msg} {1 {not enough arguments for all format specifiers}}test binary-12.2 {Tcl_BinaryObjCmd: format} {    list [catch {binary format I blat} msg] $msg} {1 {expected integer but got "blat"}}test binary-12.3 {Tcl_BinaryObjCmd: format} {    binary format I0 0x50} {}test binary-12.4 {Tcl_BinaryObjCmd: format} {    binary format I 0x50} \x00\x00\x00Ptest binary-12.5 {Tcl_BinaryObjCmd: format} {    binary format I 0x5052} \x00\x00PRtest binary-12.6 {Tcl_BinaryObjCmd: format} {    binary format I 0x505251 0x53} \x00PRQtest binary-12.7 {Tcl_BinaryObjCmd: format} {    binary format I1 {0x505251 0x53}} \x00PRQtest binary-12.8 {Tcl_BinaryObjCmd: format} {    binary format I 0x53525150} SRQPtest binary-12.9 {Tcl_BinaryObjCmd: format} {    binary format I2 {0x50 0x52}} \x00\x00\x00P\x00\x00\x00Rtest binary-12.10 {Tcl_BinaryObjCmd: format} {    binary format I* {0x50515253 0x52}} PQRS\x00\x00\x00Rtest binary-12.11 {Tcl_BinaryObjCmd: format} {    list [catch {binary format i2 {0x50}} msg] $msg} {1 {number of elements in list does not match count}}test binary-12.12 {Tcl_BinaryObjCmd: format} {    set a {0x50 0x51}    list [catch {binary format I $a} msg] $msg} [list 1 "expected integer but got \"0x50 0x51\""]test binary-12.13 {Tcl_BinaryObjCmd: format} {    set a {0x50 0x51}    binary format I1 $a} \x00\x00\x00Ptest binary-13.1 {Tcl_BinaryObjCmd: format} {    list [catch {binary format f} msg] $msg} {1 {not enough arguments for all format specifiers}}test binary-13.2 {Tcl_BinaryObjCmd: format} {    list [catch {binary format f blat} msg] $msg} {1 {expected floating-point number but got "blat"}}test binary-13.3 {Tcl_BinaryObjCmd: format} {    binary format f0 1.6} {}test binary-13.4 {Tcl_BinaryObjCmd: format} {nonPortable macOrUnix} {    binary format f 1.6} \x3f\xcc\xcc\xcdtest binary-13.5 {Tcl_BinaryObjCmd: format} {nonPortable pcOnly} {    binary format f 1.6} \xcd\xcc\xcc\x3ftest binary-13.6 {Tcl_BinaryObjCmd: format} {nonPortable macOrUnix} {    binary format f* {1.6 3.4}} \x3f\xcc\xcc\xcd\x40\x59\x99\x9atest binary-13.7 {Tcl_BinaryObjCmd: format} {nonPortable pcOnly} {    binary format f* {1.6 3.4}} \xcd\xcc\xcc\x3f\x9a\x99\x59\x40test binary-13.8 {Tcl_BinaryObjCmd: format} {nonPortable macOrUnix} {    binary format f2 {1.6 3.4}} \x3f\xcc\xcc\xcd\x40\x59\x99\x9atest binary-13.9 {Tcl_BinaryObjCmd: format} {nonPortable pcOnly} {    binary format f2 {1.6 3.4}} \xcd\xcc\xcc\x3f\x9a\x99\x59\x40test binary-13.10 {Tcl_BinaryObjCmd: format} {nonPortable macOrUnix} {    binary format f2 {1.6 3.4 5.6}} \x3f\xcc\xcc\xcd\x40\x59\x99\x9atest binary-13.11 {Tcl_BinaryObjCmd: format} {nonPortable pcOnly} {    binary format f2 {1.6 3.4 5.6}} \xcd\xcc\xcc\x3f\x9a\x99\x59\x40test binary-13.12 {Tcl_BinaryObjCmd: float overflow} {nonPortable macOrUnix} {    binary format f -3.402825e+38} \xff\x7f\xff\xfftest binary-13.13 {Tcl_BinaryObjCmd: float overflow} {nonPortable pcOnly} {    binary format f -3.402825e+38} \xff\xff\x7f\xfftest binary-13.14 {Tcl_BinaryObjCmd: float underflow} {nonPortable macOrUnix} {    binary format f -3.402825e-100} \x80\x00\x00\x00test binary-13.15 {Tcl_BinaryObjCmd: float underflow} {nonPortable pcOnly} {    binary format f -3.402825e-100} \x00\x00\x00\x80test binary-13.16 {Tcl_BinaryObjCmd: format} {    list [catch {binary format f2 {1.6}} msg] $msg} {1 {number of elements in list does not match count}}test binary-13.17 {Tcl_BinaryObjCmd: format} {    set a {1.6 3.4}    list [catch {binary format f $a} msg] $msg} [list 1 "expected floating-point number but got \"1.6 3.4\""]test binary-13.18 {Tcl_BinaryObjCmd: format} {nonPortable macOrUnix} {    set a {1.6 3.4}    binary format f1 $a} \x3f\xcc\xcc\xcdtest binary-13.19 {Tcl_BinaryObjCmd: format} {nonPortable pcOnly} {    set a {1.6 3.4}    binary format f1 $a} \xcd\xcc\xcc\x3ftest binary-14.1 {Tcl_BinaryObjCmd: format} {    list [catch {binary format d} msg] $msg} {1 {not enough arguments for all format specifiers}}test binary-14.2 {Tcl_BinaryObjCmd: format} {    list [catch {binary format d blat} msg] $msg} {1 {expected floating-point number but got "blat"}}test binary-14.3 {Tcl_BinaryObjCmd: format} {    binary format d0 1.6} {}test binary-14.4 {Tcl_BinaryObjCmd: format} {nonPortable macOrUnix} {    binary format d 1.6} \x3f\xf9\x99\x99\x99\x99\x99\x9atest binary-14.5 {Tcl_BinaryObjCmd: format} {nonPortable pcOnly} {    binary format d 1.6} \x9a\x99\x99\x99\x99\x99\xf9\x3ftest binary-14.6 {Tcl_BinaryObjCmd: format} {nonPortable macOrUnix} {    binary format d* {1.6 3.4}} \x3f\xf9\x99\x99\x99\x99\x99\x9a\x40\x0b\x33\x33\x33\x33\x33\x33test binary-14.7 {Tcl_BinaryObjCmd: format} {nonPortable pcOnly} {    binary format d* {1.6 3.4}} \x9a\x99\x99\x99\x99\x99\xf9\x3f\x33\x33\x33\x33\x33\x33\x0b\x40test binary-14.8 {Tcl_BinaryObjCmd: format} {nonPortable macOrUnix} {    binary format d2 {1.6 3.4}} \x3f\xf9\x99\x99\x99\x99\x99\x9a\x40\x0b\x33\x33\x33\x33\x33\x33test binary-14.9 {Tcl_BinaryObjCmd: format} {nonPortable pcOnly} {    binary format d2 {1.6 3.4}} \x9a\x99\x99\x99\x99\x99\xf9\x3f\x33\x33\x33\x33\x33\x33\x0b\x40test binary-14.10 {Tcl_BinaryObjCmd: format} {nonPortable macOrUnix} {    binary format d2 {1.6 3.4 5.6}} \x3f\xf9\x99\x99\x99\x99\x99\x9a\x40\x0b\x33\x33\x33\x33\x33\x33test binary-14.11 {Tcl_BinaryObjCmd: format} {nonPortable pcOnly} {    binary format d2 {1.6 3.4 5.6}} \x9a\x99\x99\x99\x99\x99\xf9\x3f\x33\x33\x33\x33\x33\x33\x0b\x40test binary-14.12 {Tcl_BinaryObjCmd: float overflow} {nonPortable unixOnly} {    binary format d NaN} \x7f\xff\xff\xff\xff\xff\xff\xfftest binary-14.13 {Tcl_BinaryObjCmd: float overflow} {nonPortable macOnly} {    binary format d NaN} \x7f\xf8\x02\xa0\x00\x00\x00\x00test binary-14.14 {Tcl_BinaryObjCmd: format} {    list [catch {binary format d2 {1.6}} msg] $msg} {1 {number of elements in list does not match count}}test binary-14.15 {Tcl_BinaryObjCmd: format} {    set a {1.6 3.4}    list [catch {binary format d $a} msg] $msg} [list 1 "expected floating-point number but got \"1.6 3.4\""]test binary-14.16 {Tcl_BinaryObjCmd: format} {nonPortable macOrUnix} {    set a {1.6 3.4}    binary format d1 $a} \x3f\xf9\x99\x99\x99\x99\x99\x9atest binary-14.17 {Tcl_BinaryObjCmd: format} {nonPortable pcOnly} {    set a {1.6 3.4}    binary format d1 $a} \x9a\x99\x99\x99\x99\x99\xf9\x3ftest binary-15.1 {Tcl_BinaryObjCmd: format} {    list [catch {binary format ax*a "y" "z"} msg] $msg} {1 {cannot use "*" in format string with "x"}}test binary-15.2 {Tcl_BinaryObjCmd: format} {    binary format axa "y" "z"} y\x00ztest binary-15.3 {Tcl_BinaryObjCmd: format} {    binary format ax3a "y" "z"} y\x00\x00\x00ztest binary-15.4 {Tcl_BinaryObjCmd: format} {    binary format a*X3x3a* "foo" "z"} \x00\x00\x00ztest binary-16.1 {Tcl_BinaryObjCmd: format} {    binary format a*X*a "foo" "z"} zootest binary-16.2 {Tcl_BinaryObjCmd: format} {    binary format aX3a "y" "z"} ztest binary-16.3 {Tcl_BinaryObjCmd: format} {    binary format a*Xa* "foo" "zy"} fozytest binary-16.4 {Tcl_BinaryObjCmd: format} {    binary format a*X3a "foobar" "z"} foozartest binary-16.5 {Tcl_BinaryObjCmd: format} {    binary format a*X3aX2a "foobar" "z" "b"} fobzartest binary-17.1 {Tcl_BinaryObjCmd: format} {    binary format @1} \x00test binary-17.2 {Tcl_BinaryObjCmd: format} {    binary format @5a2 "ab"} \x00\x00\x00\x00\x00\x61\x62test binary-17.3 {Tcl_BinaryObjCmd: format} {    binary format {a*  @0  a2 @* a*} "foobar" "ab" "blat"} abobarblattest binary-18.1 {Tcl_BinaryObjCmd: format} {    list [catch {binary format u0a3 abc abd} msg] $msg} {1 {bad field specifier "u"}}test binary-19.1 {Tcl_BinaryObjCmd: errors} {    list [catch {binary s} msg] $msg} {1 {wrong # args: should be "binary scan value formatString ?varName varName ...?"}}test binary-19.2 {Tcl_BinaryObjCmd: errors} {    list [catch {binary scan foo} msg] $msg} {1 {wrong # args: should be "binary scan value formatString ?varName varName ...?"}}test binary-19.3 {Tcl_BinaryObjCmd: scan} {    binary scan {} {}} 0test binary-20.1 {Tcl_BinaryObjCmd: scan} {    list [catch {binary scan abc a} msg] $msg} {1 {not enough arguments for all format specifiers}}test binary-20.2 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    set arg1 1    list [catch {binary scan abc a arg1(a)} msg] $msg} {1 {can't set "arg1(a)": variable isn't array}}test binary-20.3 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    set arg1 abc    list [binary scan abc a0 arg1] $arg1} {1 {}}test binary-20.4 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan abc a* arg1] $arg1} {1 abc}test binary-20.5 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan abc a5 arg1] [info exist arg1]} {0 0}test binary-20.6 {Tcl_BinaryObjCmd: scan} {    set arg1 foo    list [binary scan abc a2 arg1] $arg1} {1 ab}test binary-20.7 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    catch {unset arg2}    list [binary scan abcdef a2a2 arg1 arg2] $arg1 $arg2} {2 ab cd}test binary-20.8 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan abc a2 arg1(a)] $arg1(a)} {1 ab}test binary-20.9 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan abc a arg1(a)] $arg1(a)} {1 a}test binary-21.1 {Tcl_BinaryObjCmd: scan} {    list [catch {binary scan abc A} msg] $msg} {1 {not enough arguments for all format specifiers}}test binary-21.2 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    set arg1 1    list [catch {binary scan abc A arg1(a)} msg] $msg} {1 {can't set "arg1(a)": variable isn't array}}test binary-21.3 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    set arg1 abc    list [binary scan abc A0 arg1] $arg1} {1 {}}test binary-21.4 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan abc A* arg1] $arg1} {1 abc}test binary-21.5 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan abc A5 arg1] [info exist arg1]} {0 0}test binary-21.6 {Tcl_BinaryObjCmd: scan} {    set arg1 foo    list [binary scan abc A2 arg1] $arg1} {1 ab}test binary-21.7 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    catch {unset arg2}    list [binary scan abcdef A2A2 arg1 arg2] $arg1 $arg2} {2 ab cd}test binary-21.8 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan abc A2 arg1(a)] $arg1(a)} {1 ab}test binary-21.9 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan abc A2 arg1(a)] $arg1(a)} {1 ab}test binary-21.10 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan abc A arg1(a)] $arg1(a)} {1 a}test binary-21.11 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan "abc def \x00  " A* arg1] $arg1} {1 {abc def}}test binary-21.12 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan "abc def \x00ghi  " A* arg1] $arg1} [list 1 "abc def \x00ghi"]test binary-22.1 {Tcl_BinaryObjCmd: scan} {    list [catch {binary scan abc b} msg] $msg} {1 {not enough arguments for all format specifiers}}test binary-22.2 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan \x52\x53 b* arg1] $arg1} {1 0100101011001010}test binary-22.3 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan \x82\x53 b arg1] $arg1} {1 0}test binary-22.4 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan \x82\x53 b1 arg1] $arg1} {1 0}test binary-22.5 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan \x82\x53 b0 arg1] $arg1} {1 {}}test binary-22.6 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan \x52\x53 b5 arg1] $arg1} {1 01001}test binary-22.7 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan \x52\x53 b8 arg1] $arg1} {1 01001010}test binary-22.8 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan \x52\x53 b14 arg1] $arg1} {1 01001010110010}test binary-22.9 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    set arg1 foo    list [binary scan \x52 b14 arg1] $arg1} {0 foo}test binary-22.10 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    set arg1 1    list [catch {binary scan \x52\x53 b1 arg1(a)} msg] $msg} {1 {can't set "arg1(a)": variable isn't array}}test binary-22.11 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1 arg2}    set arg1 foo    set arg2 bar    list [binary scan \x07\x87\x05 b5b* arg1 arg2] $arg1 $arg2} {2 11100 1110000110100000}test binary-23.1 {Tcl_BinaryObjCmd: scan} {    list [catch {binary scan abc B} msg] $msg} {1 {not enough arguments for all format specifiers}}test binary-23.2 {Tcl_BinaryObjCmd: scan} {    catch {unset arg1}    list [binary scan \x52\x53 B* arg1] $arg1} {1 0101001001010011}

⌨️ 快捷键说明

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