test: areg: add more tests (#1634)
This commit is contained in:
		
							parent
							
								
									fc8aa602cf
								
							
						
					
					
						commit
						396b1eb515
					
				| @ -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 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user