mirror of
https://github.com/simonmichael/hledger.git
synced 2024-12-27 12:24:43 +03:00
test register report with account pattern
This commit is contained in:
parent
0ad4f7b656
commit
06aeefdbf7
8
Tests.hs
8
Tests.hs
@ -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
|
||||
]
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user