File: value_null.fqtest

package info (click to toggle)
fq 0.9.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 106,624 kB
  • sloc: xml: 2,835; makefile: 250; sh: 241; exp: 57; ansic: 21
file content (127 lines) | stat: -rw-r--r-- 4,832 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
$ fq -i -d mp3 . test.mp3
mp3> .headers[0].padding | ., tovalue, toactual, tosym, type, length?
    |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x20|         00 00 00 00 00 00 00 00 00 00         |   ..........   |.headers[0].padding: raw bits (all zero)
"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
null
"string"
10
mp3> .headers[0].padding[0] | ., type, length?
"\u0000"
"string"
1
mp3> .headers[0].padding[-1000] | ., type, length?
""
"string"
0
mp3> .headers[0].padding[1000] | ., type, length?
""
"string"
0
mp3> .headers[0].padding[1:3] | ., type, length?
"\u0000\u0000"
"string"
2
mp3> .headers[0].padding[0:-1] | ., type, length?
"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
"string"
9
mp3> .headers[0].padding[-1000:2000] | ., type, length?
"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
"string"
10
mp3> .headers[0].padding["test"] | ., type, length?
null
"null"
0
mp3> [.headers[0].padding[]] | type, length?
error: cannot iterate over: string
mp3> .headers[0].padding | keys
error: keys cannot be applied to: string
mp3> .headers[0].padding | has("a")
error: has cannot be applied to: string
mp3> .headers[0].padding | has(0)
error: has cannot be applied to: string
mp3> .headers[0].padding | type
"string"
mp3> .headers[0].padding | tonumber
error: invalid number: "\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
mp3> .headers[0].padding | tostring
"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
mp3> .headers[0].padding + ""
"\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000\u0000"
mp3> .headers[0].padding + 1
error: cannot add: string ("\u0000\u0000\u0000\u0000 ...") and number (1)
mp3> .headers[0].padding._start | ., type, length?
280
"number"
280
mp3> .headers[0].padding._stop | ., type, length?
360
"number"
360
mp3> .headers[0].padding._len | ., type, length?
80
"number"
80
mp3> .headers[0].padding._name | ., type, length?
"padding"
"string"
7
mp3> .headers[0].padding._actual | ., type, length?
    |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x20|         00 00 00 00 00 00 00 00 00 00         |   ..........   |.headers[0].padding: raw bits (all zero)
"string"
10
mp3> .headers[0].padding._sym | ., type, length?
    |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x20|         00 00 00 00 00 00 00 00 00 00         |   ..........   |.headers[0].padding: raw bits (all zero)
"null"
0
mp3> .headers[0].padding._description | ., type, length?
"all zero"
"string"
8
mp3> .headers[0].padding._path | ., type, length?
[
  "headers",
  0,
  "padding"
]
"array"
3
mp3> .headers[0].padding._bits | ., type, length?
    |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x20|         00 00 00 00 00 00 00 00 00 00         |   ..........   |.: raw bits 0x23-0x2d (10)
"string"
80
mp3> .headers[0].padding._bytes | ., type, length?
    |00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f|0123456789abcdef|
0x20|         00 00 00 00 00 00 00 00 00 00         |   ..........   |.: raw bits 0x23-0x2d (10)
"string"
10
mp3> .headers[0].padding._error | ., type, length?
null
"null"
0
mp3> .headers[0].padding._gap | ., type, length?
false
"boolean"
mp3> .headers[0].padding.a = 1
error: setpath(["headers",0,"padding","a"]; 1) cannot be applied to {"footers":[],"frames":[{" ...: expected an object but got: string ("\u0000\u0000\u0000\u0000 ...")
mp3> .headers[0].padding[0] = 1
error: setpath(["headers",0,"padding",0]; 1) cannot be applied to {"footers":[],"frames":[{" ...: expected an array but got: string ("\u0000\u0000\u0000\u0000 ...")
mp3> .headers[0].padding.a |= empty
error: delpaths([["headers",0,"padding","a"]]) cannot be applied to {"footers":[],"frames":[{" ...: expected an object but got: string ("\u0000\u0000\u0000\u0000 ...")
mp3> .headers[0].padding[0] |= empty
error: delpaths([["headers",0,"padding",0]]) cannot be applied to {"footers":[],"frames":[{" ...: expected an array but got: string ("\u0000\u0000\u0000\u0000 ...")
mp3> .headers[0].padding | setpath(["a"]; 1)
error: setpath(["a"]; 1) cannot be applied to "\u0000\u0000\u0000\u0000\ ...: expected an object but got: string ("\u0000\u0000\u0000\u0000 ...")
mp3> .headers[0].padding | setpath([0]; 1)
error: setpath([0]; 1) cannot be applied to "\u0000\u0000\u0000\u0000\ ...: expected an array but got: string ("\u0000\u0000\u0000\u0000 ...")
mp3> .headers[0].padding | delpaths([["a"]])
error: delpaths([["a"]]) cannot be applied to "\u0000\u0000\u0000\u0000\ ...: expected an object but got: string ("\u0000\u0000\u0000\u0000 ...")
mp3> .headers[0].padding | delpaths([[0]])
error: delpaths([[0]]) cannot be applied to "\u0000\u0000\u0000\u0000\ ...: expected an array but got: string ("\u0000\u0000\u0000\u0000 ...")
mp3> ^D