more virtual posting tests, one failing

This commit is contained in:
Simon Michael 2010-04-14 01:09:45 +00:00
parent 70a4e25cf5
commit 7b5f4f33dd

View File

@ -1,12 +1,28 @@
./hledger -f - print # 1. virtual posting shouldn't affect balance
./hledger -f-
<<< <<<
2009/1/1 x 2009/1/1 x
(virtual) 100 (virtual) 100
a 1 a 1
b b
>>> # 2. balanced virtual postings should be required to balance (themselves)
2009/01/01 x ./hledger -f-
(virtual) 100 <<<
a 1 2010/1/1 x
b -1 [balanced virtual] 100
a 1
b
>>>= !0
./hledger -f-
<<<
2010/1/1 x
[balanced virtual] 100
[balanced virtual] -100
a 1
b
# 3. a virtual posting with implicit amount should be handled correctly
./hledger -f-
<<<
2010/1/1 x
[a] 1
[b]