add tests for some observed issues
This commit is contained in:
		
							parent
							
								
									f209305eef
								
							
						
					
					
						commit
						31ae51b435
					
				
							
								
								
									
										9
									
								
								tests/decimals-balance-failure.test
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										9
									
								
								tests/decimals-balance-failure.test
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,9 @@
 | 
			
		||||
# b amount with no decimal places, in middle, causes balance failure (0.6.1)
 | 
			
		||||
-f - print
 | 
			
		||||
<<<
 | 
			
		||||
2009/1/1 x
 | 
			
		||||
    a         $1.25
 | 
			
		||||
    b         $-1
 | 
			
		||||
    c         $-0.25
 | 
			
		||||
 | 
			
		||||
>>>2
 | 
			
		||||
							
								
								
									
										8
									
								
								tests/extra-date-slash.test
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								tests/extra-date-slash.test
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,8 @@
 | 
			
		||||
# extra slash before [ silently breaks effective date (0.6.1)
 | 
			
		||||
-f - print --effective -p 2009/1/2
 | 
			
		||||
<<<
 | 
			
		||||
2009/1/1/[=2009/1/2] x
 | 
			
		||||
    a  1
 | 
			
		||||
    b
 | 
			
		||||
 | 
			
		||||
>>>2 /unexpected/
 | 
			
		||||
							
								
								
									
										18
									
								
								tests/print-preserves-comments.test
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								tests/print-preserves-comments.test
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,18 @@
 | 
			
		||||
# let's have print preserve comments as far as possible
 | 
			
		||||
-f - print
 | 
			
		||||
<<<
 | 
			
		||||
2009/1/1 x  ; description comment
 | 
			
		||||
    a  1  ; amount comment
 | 
			
		||||
    ; middle posting comment
 | 
			
		||||
    b
 | 
			
		||||
    ; trailing posting comment
 | 
			
		||||
; post-entry comment
 | 
			
		||||
>>>
 | 
			
		||||
2009/01/01 x  ; description comment
 | 
			
		||||
    a             1  ; amount comment
 | 
			
		||||
    ; middle posting comment
 | 
			
		||||
    b
 | 
			
		||||
    ; trailing posting comment
 | 
			
		||||
; post-entry comment (?)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user