diff options
author | John Wiegley <johnw@newartisans.com> | 2009-06-16 16:43:44 +0100 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2009-06-16 16:43:44 +0100 |
commit | 995c94ef178d143c2458ebf66ddb084aa782e975 (patch) | |
tree | 0fa88ecd874104fb3a569113dda73608c0ef5d0b | |
parent | 463f741ed247f7486a5bdce8a331281887f476fe (diff) | |
download | fork-ledger-995c94ef178d143c2458ebf66ddb084aa782e975.tar.gz fork-ledger-995c94ef178d143c2458ebf66ddb084aa782e975.tar.bz2 fork-ledger-995c94ef178d143c2458ebf66ddb084aa782e975.zip |
Added several new regression tests
-rw-r--r-- | test/regress/04C5E1CA.test | 18 | ||||
-rw-r--r-- | test/regress/5A03CFC3.test | 72 | ||||
-rw-r--r-- | test/regress/B68FFB0D.test | 15 |
3 files changed, 105 insertions, 0 deletions
diff --git a/test/regress/04C5E1CA.test b/test/regress/04C5E1CA.test new file mode 100644 index 00000000..729ae6bf --- /dev/null +++ b/test/regress/04C5E1CA.test @@ -0,0 +1,18 @@ +reg +<<< +2009/04/04 CS Club Sign + Expenses:School:CS Club:Home Depot:4" Brush 2 @ $3.97 + Liabilities:Mastercard + +2009/04/04 CS Club Sign + Expenses:School:CS Club:Home Depot:4" Brush (2 * $3.97) + Liabilities:Mastercard +>>>1 +09-Apr-04 CS Club Sign Ex:Sc:CS:Ho:4" Brush 2 2 + Liabilities:Mastercard $-7.94 2 + $-7.94 +09-Apr-04 CS Club Sign Ex:Sc:CS:Ho:4" Brush $7.94 2 + Liabilities:Mastercard $-7.94 2 + $-7.94 +>>>2 +=== 0 diff --git a/test/regress/5A03CFC3.test b/test/regress/5A03CFC3.test new file mode 100644 index 00000000..a5a12af3 --- /dev/null +++ b/test/regress/5A03CFC3.test @@ -0,0 +1,72 @@ +bal assets +<<< += account =~ /^Income/ + (Liabilities:Tithe) 0.12 + +~ Monthly + Assets:Checking $500.00 + Income:Salary + +2003/12/01 * Checking balance + Assets:Checking $1,000.00 + Equity:Opening Balances + +2003/12/20 Organic Co-op + Expenses:Food:Groceries $ 37.50 ; [=2004/01/01] + Expenses:Food:Groceries $ 37.50 ; [=2004/02/01] + Expenses:Food:Groceries $ 37.50 ; [=2004/03/01] + Expenses:Food:Groceries $ 37.50 ; [=2004/04/01] + Expenses:Food:Groceries $ 37.50 ; [=2004/05/01] + Expenses:Food:Groceries $ 37.50 ; [=2004/06/01] + Assets:Checking $ -225.00 + +2003/12/28=2004/01/01 Acme Mortgage + Liabilities:Mortgage:Principal $ 200.00 + Expenses:Interest:Mortgage $ 500.00 + Expenses:Escrow $ 300.00 + Assets:Checking $ -1000.00 + +2004/01/02 Grocery Store + Expenses:Food:Groceries $ 65.00 + Assets:Checking + +2004/01/05 Employer + Assets:Checking $ 2000.00 + Income:Salary + +2004/01/14 Bank + ; Regular monthly savings transfer + Assets:Savings $ 300.00 + Assets:Checking + +2004/01/19 Grocery Store + Expenses:Food:Groceries $ 44.00 + Assets:Checking + +2004/01/25 Bank + ; Transfer to cover car purchase + Assets:Checking $ 5,500.00 + Assets:Savings + ; :nobudget: + +2004/01/25 Tom's Used Cars + Expenses:Auto $ 5,500.00 + ; :nobudget: + Assets:Checking + +2004/01/27 Book Store + Expenses:Books $20.00 + Liabilities:MasterCard + +2004/02/01 Sale + Assets:Checking:Business $ 30.00 + Income:Sales +>>>1 + $ -3,804.00 Assets + $ 1,396.00 Checking + $ 30.00 Business + $ -5,200.00 Savings +-------------------- + $ -3,804.00 +>>>2 +=== 0 diff --git a/test/regress/B68FFB0D.test b/test/regress/B68FFB0D.test new file mode 100644 index 00000000..3a43df4c --- /dev/null +++ b/test/regress/B68FFB0D.test @@ -0,0 +1,15 @@ +print +<<< +D $1,000.00 + +2009/01/01 Sample + assets 134.123 FOO @ $8.88 + assets 100 BAR @ $8.88 + equity +>>>1 +2009/01/01 Sample + assets 134.123 FOO @ $8.88 + assets 100 BAR @ $8.88 + equity +>>>2 +=== 0 |