add tests for some observed issues

This commit is contained in:
Simon Michael 2009-09-16 17:05:59 +00:00
parent f209305eef
commit 31ae51b435
3 changed files with 35 additions and 0 deletions

View 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

View 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/

View 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 (?)