hledger/tests/amounts.test
2011-01-15 02:04:53 +00:00

25 lines
306 B
Plaintext

# 1. a no-commodity amount with a unit price
bin/hledger -f - print
<<<
2010/1/1 x
a 1 @ $2
b
>>>
2010/01/01 x
a 1 @ $2
b -1 @ $2
# 2. with a total price
bin/hledger -f - print
<<<
2010/1/1 x
a 2 @@ $2
b
>>>
2010/01/01 x
a 2 @@ $2
b -2 @@ $2