hledger/tests/filter-patterns.test
Simon Michael 2bb120d6c6 register: fix -w related test breakage, another width tweak (#102)
As part of adding -w in december I cleaned up/adjusted register field
widths, and didn't make all the tests pass. This commit makes one more
width adjustment
(one space after the date instead of two) and fixes all tests depending on register output.
2013-04-12 14:56:41 -07:00

38 lines
771 B
Plaintext

# 1. account pattern with space
hledgerdev -f- register 'a a'
<<<
2010/3/1 x
a a 1
b
>>>
2010/03/01 x a a 1 1
>>>=0
#
# 2. description pattern with space
hledgerdev -f- register desc:'x x'
<<<
2010/3/1 x
a 1
b
2010/3/2 x x
a 1
b
>>>
2010/03/02 x x a 1 1
b -1 0
>>>=0
#
# 3. multiple patterns, spaced and punctuated patterns
hledgerdev -f- register 'a a' "'b"
<<<
2011/9/11
a a 1
'b
>>>
2011/09/11 a a 1 1
'b -1 0
>>>=0