diff --git a/hledger/test/aregister.test b/hledger/test/aregister.test index 8d817d900..f7e189efb 100644 --- a/hledger/test/aregister.test +++ b/hledger/test/aregister.test @@ -1,4 +1,3 @@ -# aregister always includes transactions in subaccounts, ignoring a depth limit #1448 < 2021-01-01 (a) 1 @@ -9,8 +8,21 @@ 2021-01-03 (a:aa:aaa) 100 -$ hledger -f- areg a -1 -w80 +# aregister ignores a depth limit, always showing transactions in subaccounts. #1448 +$ hledger -f- areg -w80 a depth:1 Transactions in a and subaccounts: 2021-01-01 a 1 1 2021-01-02 a:aa 10 11 2021-01-03 a:aa:aaa 100 111 + +# aregister is always in historical mode, showing balance from prior transactions. +$ hledger -f- areg -w80 a -b 2021-01-02 +Transactions in a and subaccounts: +2021-01-02 a:aa 10 11 +2021-01-03 a:aa:aaa 100 111 + +# Any additional arguments are a query, filtering the transactions. This may +# cause the running balance to diverge from the real-world running balance. +$ hledger -f- areg -w80 a aaa +Transactions in a and subaccounts: +2021-01-03 a:aa:aaa 100 100