mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-29 05:11:33 +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).
81 lines
908 B
Plaintext
81 lines
908 B
Plaintext
# 1. the status field can contain nothing,
|
|
hledger -f- print
|
|
<<<
|
|
2015/1/1 x
|
|
(a) 1
|
|
>>>
|
|
2015/01/01 x
|
|
(a) 1
|
|
|
|
>>>=0
|
|
|
|
# 2. or !
|
|
hledger -f- print
|
|
<<<
|
|
2015/1/1 ! x
|
|
(a) 1
|
|
>>>
|
|
2015/01/01 ! x
|
|
(a) 1
|
|
|
|
>>>=0
|
|
|
|
# 3. or *
|
|
hledger -f- print
|
|
<<<
|
|
2015/1/1 * x
|
|
(a) 1
|
|
>>>
|
|
2015/01/01 * x
|
|
(a) 1
|
|
|
|
>>>=0
|
|
|
|
# 4. --cleared matches * only
|
|
hledger -f- print --cleared
|
|
<<<
|
|
2015/1/1 x
|
|
(a) 1
|
|
2015/1/1 ! x
|
|
(b) 1
|
|
2015/1/1 * x
|
|
(c) 1
|
|
>>>
|
|
2015/01/01 * x
|
|
(c) 1
|
|
|
|
>>>=0
|
|
|
|
# 5. --pending matches ! only
|
|
hledger -f- print --pending
|
|
<<<
|
|
2015/1/1 x
|
|
(a) 1
|
|
2015/1/1 ! x
|
|
(b) 1
|
|
2015/1/1 * x
|
|
(c) 1
|
|
>>>
|
|
2015/01/01 ! x
|
|
(b) 1
|
|
|
|
>>>=0
|
|
|
|
# 6. --uncleared matches all except *
|
|
hledger -f- print --uncleared
|
|
<<<
|
|
2015/1/1 x
|
|
(a) 1
|
|
2015/1/1 ! x
|
|
(b) 1
|
|
2015/1/1 * x
|
|
(c) 1
|
|
>>>
|
|
2015/01/01 x
|
|
(a) 1
|
|
|
|
2015/01/01 ! x
|
|
(b) 1
|
|
|
|
>>>=0
|