hledger/tests/cli/query-args.test
Stephen Morgan 83a518af99 lib,cli,ui: In ReportOpts, store query terms term-by-term in a list in
querystring_.

This helps deal with tricky quoting issues, as we no longer have to make
sure everything is quoted properly before merging it into a string.
2020-11-04 08:47:30 -08:00

57 lines
1.1 KiB
Plaintext

# 1. account pattern with space
<
2010/3/1 x
a a 1
b
$ hledger -f- register 'a a'
>
2010-03-01 x a a 1 1
>=0
#
# 2. description pattern with space
<
2010/3/1 x
a 1
b
2010/3/2 x x
a 1
b
$ hledger -f- register desc:'x x'
>
2010-03-02 x x a 1 1
b -1 0
>=0
#
# 3. multiple patterns, spaced and punctuated patterns
<
2011/9/11
a a 1
'b
$ hledger -f- register 'a a' "'b"
>
2011-09-11 a a 1 1
'b -1 0
>=0
#
# 4. patterns with quotation marks in them
<
2020-09-19 Quoting
assets:bank -5
assets:unquoted 5
2020-09-20 Quoting
assets:bank -5
assets:"quoted" 5
$ hledger -f- register '"quoted'
>
2020-09-20 Quoting assets:"quoted" 5 5
>=0