test updates

This commit is contained in:
Simon Michael 2010-07-13 07:16:43 +00:00
parent fada2198cb
commit 6cd65ea7a6
8 changed files with 12 additions and 12 deletions

View File

@ -1,5 +1,5 @@
# add should prompt again when it gets a bad date
bin/hledger -f nosuch.ledger add
bin/hledger -f nosuch.journal add
<<<
2009/1/32
>>>2 /date .*: date .*/

View File

@ -1,4 +1,4 @@
bin/hledger -f nosuch.ledger add
bin/hledger -f nosuch.journal add
<<<
>>>2 /date .*: description/

View File

@ -1,4 +1,4 @@
bin/hledger -f nosuch.ledger add
bin/hledger -f nosuch.journal add
<<<

View File

@ -1,5 +1,5 @@
# add's default amounts should not fail to balance due to precision
bin/hledger -f nosuch.ledger add
bin/hledger -f nosuch.journal add
<<<
2010/1/1
x

View File

@ -1,4 +1,4 @@
bin/hledger -f data/sample.ledger balance --depth 1
bin/hledger -f data/sample.journal balance --depth 1
>>>
$-1 assets
$2 expenses

View File

@ -1,4 +1,4 @@
bin/hledger -f data/sample.ledger balance o
bin/hledger -f data/sample.journal balance o
>>>
$1 expenses:food
$-2 income

View File

@ -1,4 +1,4 @@
bin/hledger -f data/sample.ledger balance
bin/hledger -f data/sample.journal balance
>>>
$-1 assets
$1 bank:saving

View File

@ -1,5 +1,5 @@
# 1. virtual posting shouldn't affect balance
bin/hledger -f-
bin/hledger -f- print
<<<
2009/1/1 x
(virtual) 100
@ -7,7 +7,7 @@ bin/hledger -f-
b
#
# 2. balanced virtual postings should be required to balance (themselves)
bin/hledger -f-
bin/hledger -f- print
<<<
2010/1/1 x
[balanced virtual] 10
@ -16,7 +16,7 @@ bin/hledger -f-
>>>= !0
#
# 3. balanced virtual postings should be required to balance (themselves)
bin/hledger -f-
bin/hledger -f- print
<<<
2010/1/1 x
[balanced virtual] 10
@ -25,14 +25,14 @@ bin/hledger -f-
b
#
# 4. a virtual posting with implicit amount should be handled correctly
bin/hledger -f-
bin/hledger -f- print
<<<
2010/1/1 x
[a] 10
[b]
#
# 5. real and balanced virtual postings are balanced separately, and multiple blank virtuals are ok
bin/hledger -f-
bin/hledger -f- balance
<<<
2010/1/1 x
a 1