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
(virtual) 100
a 1
b
>>>
2009/01/01 x
(virtual) 100
a 1
b -1
# 2. balanced virtual postings should be required to balance (themselves)
./hledger -f-
<<<
2010/1/1 x
[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]