1
1
mirror of https://github.com/wader/fq.git synced 2024-12-26 23:15:04 +03:00
fq/pkg/interp/testdata/string_input.fqtest

66 lines
595 B
Plaintext
Raw Normal View History

# TODO: test for jq -R . <(echo -ne 'a\nb') <(echo c) produces "a" and "bc"
2021-09-01 16:01:13 +03:00
/a:
a
b
/c:
c
$ fq -R . a c
2021-09-01 16:01:13 +03:00
"a"
"b"
"c"
$ fq -Rs . a c
2021-09-01 16:01:13 +03:00
"a\nb\nc\n"
$ fq -nRs input a c
"a\nb\nc\n"
$ fq -nRs inputs a c
"a\nb\nc\n"
2021-09-01 16:01:13 +03:00
$ fq -R
"a"
"b"
"c"
stdin:
a
b
c
$ fq -nR input
"a"
stdin:
a
b
c
$ fq -nR inputs
"a"
"b"
"c"
stdin:
a
b
c
2021-09-01 16:01:13 +03:00
$ fq -Rs
"a\nb\nc\n"
stdin:
a
b
c
$ fq -nRs input
"a\nb\nc\n"
stdin:
a
b
c
$ fq -nRs inputs
"a\nb\nc\n"
stdin:
a
b
c
2021-09-13 13:12:34 +03:00
$ fq -R . missing
exitcode: 2
stderr:
error: missing: no such file or directory
2021-09-13 13:12:34 +03:00
$ fq -Rs . missing
""
exitcode: 2
stderr:
error: missing: no such file or directory