Using "hledgerdev" was a hack to help ensure that tests used a fresh developer build by default. Now they specify "hledger" again, which fits better with stack. It's up to the tester to make sure the desired executable is first in PATH or specified with -w. (Note a couple of tests currently don't obey -w and will always run "hledger", see addons.test).
		
			
				
	
	
		
			54 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			54 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| # 1. issue 87, hledger should give this balance.
 | |
| hledger -f - balance --no-total b
 | |
| <<<
 | |
| 1/1
 | |
|     a  -553.653 X @@ 2609.92
 | |
|     a    -5.684 X @@ 26.10
 | |
|     a   -50.833 X @@ 234.90
 | |
|     a   -49.714 X @@ 234.90
 | |
|     a   -49.957 X @@ 234.90
 | |
|     a   -49.778 X @@ 234.90
 | |
|     a  -142.316 X @@ 674.01
 | |
|     a   -49.029 X @@ 234.90
 | |
|     a   -51.233 X @@ 234.90
 | |
|     a   -49.204 X @@ 234.90
 | |
|     a   -49.474 X @@ 234.90
 | |
|     a   -47.773 X @@ 234.90
 | |
|     a  -109.439 X @@ 576.96
 | |
|     a   -31.133 X @@ 171.51
 | |
|     a  -438.249 X @@ 2537.90
 | |
|     a   -11.927 X @@ 72.03
 | |
|     a  -170.721 X @@ 990.18
 | |
|     a  1910.117 X @@ 10742.52
 | |
|     b
 | |
| >>>
 | |
|              -969.81  b
 | |
| >>>= 0
 | |
| 
 | |
| # 2. As above, but the prices have a commodity - should work the same.
 | |
| hledger -f - balance --no-total b
 | |
| <<<
 | |
| 1/1
 | |
|     a  -553.653 X @@ 2609.92 Y
 | |
|     a    -5.684 X @@ 26.10 Y
 | |
|     a   -50.833 X @@ 234.90 Y
 | |
|     a   -49.714 X @@ 234.90 Y
 | |
|     a   -49.957 X @@ 234.90 Y
 | |
|     a   -49.778 X @@ 234.90 Y
 | |
|     a  -142.316 X @@ 674.01 Y
 | |
|     a   -49.029 X @@ 234.90 Y
 | |
|     a   -51.233 X @@ 234.90 Y
 | |
|     a   -49.204 X @@ 234.90 Y
 | |
|     a   -49.474 X @@ 234.90 Y
 | |
|     a   -47.773 X @@ 234.90 Y
 | |
|     a  -109.439 X @@ 576.96 Y
 | |
|     a   -31.133 X @@ 171.51 Y
 | |
|     a  -438.249 X @@ 2537.90 Y
 | |
|     a   -11.927 X @@ 72.03 Y
 | |
|     a  -170.721 X @@ 990.18 Y
 | |
|     a  1910.117 X @@ 10742.52 Y
 | |
|     b
 | |
| >>>
 | |
|            -969.81 Y  b
 | |
| >>>= 0
 |