mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-26 20:02:27 +03:00
21d9945ba9
Using "hledgerdev" was a hack to help ensure that tests used a fresh developer build by default. Now they specify "hledger" again, which fits better with stack. It's up to the tester to make sure the desired executable is first in PATH or specified with -w. (Note a couple of tests currently don't obey -w and will always run "hledger", see addons.test).
38 lines
762 B
Plaintext
38 lines
762 B
Plaintext
# 1. account pattern with space
|
|
hledger -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
|
|
hledger -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
|
|
hledger -f- register 'a a' "'b"
|
|
<<<
|
|
2011/9/11
|
|
a a 1
|
|
'b
|
|
>>>
|
|
2011/09/11 a a 1 1
|
|
'b -1 0
|
|
>>>=0
|