gather balance tests

This commit is contained in:
Simon Michael 2011-09-23 02:04:33 +00:00
parent 6ddf394119
commit 4a7b3b9b74
3 changed files with 16 additions and 12 deletions

View File

@ -1,9 +1,9 @@
bin/hledger -f data/sample.journal balance --depth 1 # 1
bin/hledger -f data/sample.journal balance --no-total --depth 1
>>> >>>
$-1 assets $-1 assets
$2 expenses $2 expenses
$-2 income $-2 income
$1 liabilities $1 liabilities
--------------------
0
>>>=0 >>>=0

View File

@ -1,3 +1,4 @@
# 1.
bin/hledger -f data/sample.journal balance bin/hledger -f data/sample.journal balance
>>> >>>
$-1 assets $-1 assets
@ -13,3 +14,15 @@ bin/hledger -f data/sample.journal balance
-------------------- --------------------
0 0
>>>=0 >>>=0
# 2.
bin/hledger -f data/sample.journal balance o
>>>
$1 expenses:food
$-2 income
$-1 gifts
$-1 salary
--------------------
$-1
>>>=0

View File

@ -1,9 +0,0 @@
bin/hledger -f data/sample.journal balance o
>>>
$1 expenses:food
$-2 income
$-1 gifts
$-1 salary
--------------------
$-1
>>>=0