File: inputs.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 (102 lines) | stat: -rw-r--r-- 1,923 bytes parent folder | download | duplicates (2)
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
/a:
a
/b:
b
/c:
c
# TODO: use test format
$ fq -d mp3_frame todescription a b c
"a"
"b"
"c"
$ fq -d mp3_frame '(.,inputs) | todescription' a b c
"a"
"b"
"c"
$ fq -d mp3_frame '(.,input,input,input) | try todescription catch .' a b c
"a"
"b"
"c"
exitcode: 5
stderr:
error: c: break
$ fq -d mp3_frame -n '(.,inputs) | try todescription catch .' a b c
"expected decode value but got: null (null)"
"a"
"b"
"c"
$ fq -d mp3_frame -n 'inputs | try todescription catch .' a b c
"a"
"b"
"c"
$ fq -d mp3_frame -n '[inputs | try todescription catch .]' a b c
[
  "a",
  "b",
  "c"
]
$ fq -d mp3_frame -n '(input,input,input,input) | todescription' a b c
"a"
"b"
"c"
exitcode: 5
stderr:
error: c: break
$ fq -d mp3_frame input_filename
"<stdin>"
stdin:
test
$ fq -d mp3_frame input_filename a b c
"a"
"b"
"c"
$ fq -d mp3_frame input_filename a non-existing c
"a"
"c"
exitcode: 2
stderr:
error: non-existing: no such file or directory
$ fq -d mp3_frame '(' a b c
exitcode: 3
stderr:
error: arg:1:1: unexpected EOF
$ fq -d mp3_frame bla a b c
exitcode: 3
stderr:
error: arg: function not defined: bla/0
$ fq -d mp3_frame '1+"a"' a b c
exitcode: 5
stderr:
error: a: cannot add: number (1) and string ("a")
error: b: cannot add: number (1) and string ("a")
error: c: cannot add: number (1) and string ("a")
$ fq -s -d mp3_frame '[.[] | todescription]' a b c
[
  "a",
  "b",
  "c"
]
$ fq -n -s -d mp3_frame . a b c
null
$ fq . a
exitcode: 4
stderr:
error: a: probe: failed to decode: try fq -d FORMAT to force format, see fq -h formats for list
$ fq -i -d mp3_frame . a b c
mp3_frame!, ...[0:3][]> ._format
"mp3_frame"
"mp3_frame"
"mp3_frame"
mp3_frame!, ...[0:3][]> ^D
$ fq -i -s -d mp3_frame . a b c
[mp3_frame!, ...][0:3]> .[]._format
"mp3_frame"
"mp3_frame"
"mp3_frame"
[mp3_frame!, ...][0:3]> ^D
$ fq
exitcode: 4
stdin:
test
stderr:
error: <stdin>: probe: failed to decode: try fq -d FORMAT to force format, see fq -h formats for list