test: split/rename directive tests
This commit is contained in:
		
							parent
							
								
									344c421a3b
								
							
						
					
					
						commit
						cea8bc0558
					
				
							
								
								
									
										13
									
								
								hledger/test/journal/directive-commodity.test
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								hledger/test/journal/directive-commodity.test
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,13 @@ | ||||
| # commodity directive | ||||
| < | ||||
| commodity BTC | ||||
| $ hledger -f - reg | ||||
| 
 | ||||
| # commodity directive with subdirective | ||||
| < | ||||
| commodity BTC | ||||
|   note Bitcoin | ||||
| $ hledger -f - reg | ||||
| >2 /expecting "format"/ | ||||
| >=1 | ||||
| 
 | ||||
| @ -1,3 +1,5 @@ | ||||
| # Miscellaneous directives not tested elsewhere | ||||
| 
 | ||||
| # apply account, end apply account directives | ||||
| < | ||||
| apply account a | ||||
| @ -16,16 +18,3 @@ a:b | ||||
| aa:b | ||||
| c | ||||
| 
 | ||||
| # commodity directive | ||||
| < | ||||
| commodity BTC | ||||
| $ hledger -f - reg | ||||
| 
 | ||||
| # commodity directive with subdirective | ||||
| < | ||||
| commodity BTC | ||||
|   note Bitcoin | ||||
| $ hledger -f - reg | ||||
| >2 /expecting "format"/ | ||||
| >=1 | ||||
| 
 | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user