diff options
author | John Wiegley <johnw@newartisans.com> | 2009-03-15 22:35:06 -0400 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-03-15 22:35:06 -0400 |
commit | 63080a727540e5168d6eb230e86d06ad390dc6c5 (patch) | |
tree | 065d73a54463d216815990991dcb5edaa827d200 | |
parent | 16c77af9c9a251b194b81bc7138a6f4fa8dcff81 (diff) | |
download | fork-ledger-63080a727540e5168d6eb230e86d06ad390dc6c5.tar.gz fork-ledger-63080a727540e5168d6eb230e86d06ad390dc6c5.tar.bz2 fork-ledger-63080a727540e5168d6eb230e86d06ad390dc6c5.zip |
Added two new regression tests
These prove Simon's recent balance report bugs.
-rw-r--r-- | test/regress/461980A1.test | 13 | ||||
-rw-r--r-- | test/regress/E9F130C5.test | 30 |
2 files changed, 43 insertions, 0 deletions
diff --git a/test/regress/461980A1.test b/test/regress/461980A1.test new file mode 100644 index 00000000..d78b5fb7 --- /dev/null +++ b/test/regress/461980A1.test @@ -0,0 +1,13 @@ +bal +<<< +2008/1/1 one + test:a 1 + test:b +>>>1 + 0 test + 1 a + -1 b +-------------------- + 0 +>>>2 +=== 0 diff --git a/test/regress/E9F130C5.test b/test/regress/E9F130C5.test new file mode 100644 index 00000000..b718b11d --- /dev/null +++ b/test/regress/E9F130C5.test @@ -0,0 +1,30 @@ +bal as +<<< +2008/01/01 income + assets:bank:checking $1 + income:salary + +2008/06/01 gift + assets:bank:checking $1 + income:gifts + +2008/06/02 save + assets:bank:saving $1 + assets:bank:checking + +2008/06/03 * eat & shop + expenses:food $1 + expenses:supplies $1 + assets:cash + +2008/12/31 * pay off + liabilities:debts $1 + assets:bank:checking +>>>1 + $-1 assets + $1 bank:saving + $-2 cash +-------------------- + $-1 +>>>2 +=== 0 |