test register report with account pattern

This commit is contained in:
Simon Michael 2008-11-24 21:41:21 +00:00
parent 0ad4f7b656
commit 06aeefdbf7

View File

@ -307,6 +307,14 @@ registercommand_tests = TestList [
" assets:checking $-1 0\n" ++
"")
$ showRegisterReport [] [] l
,
"register report with account pattern" ~:
do
l <- ledgerfromfile [] "sample.ledger"
assertequal (
"2007/01/01 eat & shop assets:cash $-2 $-2\n" ++
"")
$ showRegisterReport [] ["cash"] l
]
------------------------------------------------------------------------------