1
1
mirror of https://github.com/wader/fq.git synced 2024-11-24 11:16:09 +03:00
fq/format/matroska/testdata/path.fqtest
Mattias Wadman 377af133e0 fqtest: Cleanup path usage
Make cwd for a test script the directory where the script is.
Use relative paths
2022-05-21 20:03:25 +02:00

21 lines
676 B
Plaintext

$ fq -d matroska 'matroska_path(".Segment.Tracks[0].TrackEntry[0].CodecID")' avc.mkv
exitcode: 5
stderr:
error: avc.mkv: cannot iterate over: null
$ fq -d matroska 'matroska_path(".Segment.Tracks[0].TrackEntry[0].CodecID") | matroska_path' avc.mkv
exitcode: 5
stderr:
error: avc.mkv: cannot iterate over: null
$ fq -d matroska 'matroska_path(matroska_path(".Segment.Tracks[0].TrackEntry[0].CodecID"))' avc.mkv
exitcode: 5
stderr:
error: avc.mkv: cannot iterate over: null
$ fq -n '"a" | raw | matroska_path(".Segment")'
exitcode: 5
stderr:
error: not matroska format
$ fq -n '1 | matroska_path(".Segment")'
exitcode: 5
stderr:
error: expected decode value but got: number (1)