codes: functional tests
This commit is contained in:
		
							parent
							
								
									644be1e1cf
								
							
						
					
					
						commit
						7833586d14
					
				
							
								
								
									
										37
									
								
								tests/codes.test
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										37
									
								
								tests/codes.test
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,37 @@ | |||||||
|  | # codes command | ||||||
|  | 
 | ||||||
|  | < | ||||||
|  | 1/1 (123) | ||||||
|  |  (a)  1 | ||||||
|  | 
 | ||||||
|  | 1/1 () | ||||||
|  |  (a)  1 | ||||||
|  | 
 | ||||||
|  | 1/1 | ||||||
|  |  (a)  1 | ||||||
|  | 
 | ||||||
|  | 1/1 (124) | ||||||
|  |  (a)  1 | ||||||
|  | 
 | ||||||
|  | 1/1 (123) | ||||||
|  |  (a)  1 | ||||||
|  | 
 | ||||||
|  | 1/1 | ||||||
|  |  (a)  1 | ||||||
|  | 
 | ||||||
|  | # 1. Show non-empty codes by default, in parse order, including duplicates. | ||||||
|  | $ hledger -f - codes | ||||||
|  | 123 | ||||||
|  | 124 | ||||||
|  | 123 | ||||||
|  | >= | ||||||
|  | 
 | ||||||
|  | # 2. With -E, also show empty/missing codes as blank lines. | ||||||
|  | $ hledger -f - codes -E | ||||||
|  | 123 | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | 124 | ||||||
|  | 123 | ||||||
|  | 
 | ||||||
|  | >= | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user