hledger/tests/journal/directives.test
Mykola Orliuk 53ad035b24 journal: limit scope of directives backtracking
Effectively improves error reporting for directives.

Resolves simonmichael/hledger#402
2017-11-27 14:32:48 -08:00

36 lines
428 B
Plaintext

# . apply account, end apply account
hledger -f - accounts
<<<
apply account a
2016/1/1
(b) 1
end apply account
apply account aa
2016/1/1
(b) 1
end apply account
2016/1/2
(c) 1
>>>
a:b
aa:b
c
>>>=0
# empty multi-line commodity directive
hledger -f - reg
<<<
commodity BTC
>>>
>>>2
>>>=0
# unsupported commodity sub-directive
hledger -f - reg
<<<
commodity BTC
note Bitcoin
>>>
>>>2 /expecting "format"/
>>>=1