;prices: convert tests to new format
[ci skip]
This commit is contained in:
		
							parent
							
								
									2e3b51c03f
								
							
						
					
					
						commit
						f09111b8b9
					
				| @ -1,6 +1,5 @@ | ||||
| # by default only market prices are reported | ||||
| hledger prices -f- | ||||
| <<< | ||||
| < | ||||
| P 2016/1/1 EUR $1.06 | ||||
| P 2016/2/1 EUR $1.05 | ||||
| 
 | ||||
| @ -12,15 +11,12 @@ P 2016/2/1 EUR $1.05 | ||||
| 2016/1/2 spend | ||||
|     expenses             20 EUR @ $1.07 | ||||
|     assets:bank | ||||
| >>> | ||||
| $ hledger prices -f- | ||||
| P 2016-01-01 EUR $1.06 | ||||
| P 2016-02-01 EUR $1.05 | ||||
| >>>2 | ||||
| >>>=0 | ||||
| 
 | ||||
| # costs from postings can be included also | ||||
| hledger prices -f- --costs | ||||
| <<< | ||||
| < | ||||
| P 2016/1/1 EUR $1.06 | ||||
| P 2016/2/1 EUR $1.05 | ||||
| 
 | ||||
| @ -36,17 +32,14 @@ P 2016/2/1 EUR $1.05 | ||||
| 2016/1/3 spend | ||||
|     expenses             20 EUR @@ $21.45 | ||||
|     assets:bank | ||||
| >>> | ||||
| $ hledger prices -f- --costs | ||||
| P 2016-01-01 EUR $1.06 | ||||
| P 2016-01-02 EUR $1.07 | ||||
| P 2016-01-03 EUR $1.0725 | ||||
| P 2016-02-01 EUR $1.05 | ||||
| >>>2 | ||||
| >>>=0 | ||||
| 
 | ||||
| # inverted costs from postings can be calculated | ||||
| hledger prices -f- --inverted-costs | ||||
| <<< | ||||
| < | ||||
| P 2016/1/1 EUR $1.06 | ||||
| P 2016/2/1 EUR $1.05 | ||||
| 
 | ||||
| @ -58,9 +51,7 @@ P 2016/2/1 EUR $1.05 | ||||
| 2016/1/3 spend | ||||
|     expenses             $21.45 @@ 20.00 EUR | ||||
|     assets:bank | ||||
| >>> | ||||
| $ hledger prices -f- --inverted-costs | ||||
| P 2016-01-01 EUR $1.06 | ||||
| P 2016-01-03 EUR $1.0725 | ||||
| P 2016-02-01 EUR $1.05 | ||||
| >>>2 | ||||
| >>>=0 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user