summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/15230B79.test12
-rw-r--r--test/regress/56BBE69B.test17
-rw-r--r--test/regress/620F0674.test24
-rw-r--r--test/regress/8254755E.test6
-rw-r--r--test/regress/86D2BDC4.test2
-rw-r--r--test/regress/C0212EAC.test33
-rw-r--r--test/regress/D2829FC4.test72
-rw-r--r--test/regress/E4C9A8EA.test2
8 files changed, 163 insertions, 5 deletions
diff --git a/test/regress/15230B79.test b/test/regress/15230B79.test
new file mode 100644
index 00000000..b20ab89a
--- /dev/null
+++ b/test/regress/15230B79.test
@@ -0,0 +1,12 @@
+reg
+<<<
+2010-04-02 Opening balance
+ Assets:A 14.75 EUR
+ Assets:B 2.84 GBP
+ Equity:Opening balance
+>>>
+10-Apr-02 Opening balance Assets:A 14.75 EUR 14.75 EUR
+ Assets:B 2.84 GBP 14.75 EUR
+ 2.84 GBP
+ Equity:Opening balance -14.75 EUR 2.84 GBP
+ Equity:Opening balance -2.84 GBP 0
diff --git a/test/regress/56BBE69B.test b/test/regress/56BBE69B.test
new file mode 100644
index 00000000..508ff8aa
--- /dev/null
+++ b/test/regress/56BBE69B.test
@@ -0,0 +1,17 @@
+bal
+<<<
+D 1000.00 USD
+
+2010-01-07 * Put money in
+ Assets:A -20.00 EUR
+ Equity:Opening balances
+
+2010-01-11 * Purchase
+ Assets:A 20.00 EUR @@ 25.00 USD
+ Expenses:B
+>>>
+ 20.00 EUR Equity:Opening balances
+ -25.00 USD Expenses:B
+--------------------
+ 20.00 EUR
+ -25.00 USD
diff --git a/test/regress/620F0674.test b/test/regress/620F0674.test
new file mode 100644
index 00000000..3f81a078
--- /dev/null
+++ b/test/regress/620F0674.test
@@ -0,0 +1,24 @@
+reg bank --forecast "d<=[next year]" -d "d>=[this month] & d<=[next year]" --sort d --now=2010/06/20
+<<<
+~ Monthly since 2010/01/01
+ Expenses:Bills:Rent $873.00
+ Expenses:Household $200.00
+ Income:Salary -$2491.60
+ Assets:Bank:Checking
+
+~ biweekly from 2010/02/23
+ Expenses:Bills:Housecleaning $85.00
+ Assets:Bank:Checking
+
+2010/06/22 c897683b
+ ad738623:d317da42:0e30a690 A2079.00
+ 208b135f:c84cc2a7:a336b63a A199.00
+ 45435ee9:2d8ee712:ee7e46b1:0f0e7e54:f5dbec59
+>>>
+10-Jul-01 Forecast transaction Assets:Bank:Checking $1418.60 $1418.60
+10-Aug-01 Forecast transaction Assets:Bank:Checking $1418.60 $2837.20
+10-Sep-01 Forecast transaction Assets:Bank:Checking $1418.60 $4255.80
+10-Oct-01 Forecast transaction Assets:Bank:Checking $1418.60 $5674.40
+10-Nov-01 Forecast transaction Assets:Bank:Checking $1418.60 $7093.00
+10-Dec-01 Forecast transaction Assets:Bank:Checking $1418.60 $8511.60
+11-Jan-01 Forecast transaction Assets:Bank:Checking $1418.60 $9930.20
diff --git a/test/regress/8254755E.test b/test/regress/8254755E.test
index 26baf52d..98904d6e 100644
--- a/test/regress/8254755E.test
+++ b/test/regress/8254755E.test
@@ -1,4 +1,4 @@
-bal --flat food:out
+bal --flat food:out --now=2009/12/31
<<<
~ Monthly
Expenses:Auto:Fuel $120.00
@@ -13,8 +13,8 @@ bal --flat food:out
$50.00 Expenses:Food:Out
>>>2
=== 0
-bal --flat --budget food:out
+bal --flat --budget food:out --now=2009/12/31
>>>1
- $-50.00 Expenses:Food:Out
+ $-150.00 Expenses:Food:Out
>>>2
=== 0
diff --git a/test/regress/86D2BDC4.test b/test/regress/86D2BDC4.test
index 1ea9fc41..0b463d61 100644
--- a/test/regress/86D2BDC4.test
+++ b/test/regress/86D2BDC4.test
@@ -5,7 +5,7 @@ reg -B
Expenses:Bank:Fees 2.73
Liabilities:Mastercard
>>>1
-09-Jun-03 Westjet Expen:Transportati:Air 676.017377 676.017377
+09-Jun-03 Westjet Expe:Transportatio:Air 676.017377 676.017377
Expenses:Bank:Fees 2.73 678.747377
Liabilities:Mastercard -678.747377 0
>>>2
diff --git a/test/regress/C0212EAC.test b/test/regress/C0212EAC.test
new file mode 100644
index 00000000..da178054
--- /dev/null
+++ b/test/regress/C0212EAC.test
@@ -0,0 +1,33 @@
+reg
+<<<
+2007-01-01 Opening balances
+ Assets:Cash 10.00 EUR
+ Equity:Opening balances
+
+2008-01-01 Buy 5.00 GBP
+ Assets:Cash 5.00 GBP @ 1.4 EUR
+ Assets:Checking
+
+2009-01-01 Sell 5.00 GBP for 7.50 EUR that I bought for 7.00 EUR
+ Assets:Cash -5.00 GBP {=1.4 EUR} @ 1.5 EUR
+ Assets:Checking 7.50 EUR
+ Income:Gain
+
+P 2009-02-01 00:00:00 GBP 1.5 EUR
+>>>
+07-Jan-01 Opening balances Assets:Cash 10.00 EUR 10.00 EUR
+ Equit:Opening balances -10.00 EUR 0
+08-Jan-01 Buy 5.00 GBP Assets:Cash 5.00 GBP 5.00 GBP
+ Assets:Checking -7.00 EUR -7.00 EUR
+ 5.00 GBP
+09-Jan-01 Sell 5.00 GBP for 7.. Assets:Cash -5.00 GBP {=1.40 EUR} -7.00 EUR
+ 5.00 GBP
+ -5.00 GBP {=1.40 EUR}
+ Assets:Checking 7.50 EUR 0.50 EUR
+ 5.00 GBP
+ -5.00 GBP {=1.40 EUR}
+ Income:Gain -0.50 EUR 5.00 GBP
+ -5.00 GBP {=1.40 EUR}
+ Equity:Capital Gains 0.50 EUR 0.50 EUR
+ 5.00 GBP
+ -5.00 GBP {=1.40 EUR}
diff --git a/test/regress/D2829FC4.test b/test/regress/D2829FC4.test
new file mode 100644
index 00000000..83c991fd
--- /dev/null
+++ b/test/regress/D2829FC4.test
@@ -0,0 +1,72 @@
+reg --forecast 'date<[2011]' --now=2010/06/20
+<<<
+~ Monthly since 2010/01/01
+ Expenses:Bills:Rent $873.00
+ Expenses:Household $200.00
+ Income:Salary -$2491.60
+ Assets:Bank:Checking
+
+~ biweekly from 2010/02/23
+ Expenses:Bills:Housecleaning $85.00
+ Assets:Bank:Checking
+
+2010/06/22 c897683b
+ ad738623:d317da42:0e30a690 A2079.00
+ 208b135f:c84cc2a7:a336b63a A199.00
+ 45435ee9:2d8ee712:ee7e46b1:0f0e7e54:f5dbec59
+>>>
+10-Jun-22 c897683b ad738:d317da4:0e30a690 A2079.00 A2079.00
+ 208b1:c84cc2a:a336b63a A199.00 A2278.00
+ 45:2d:ee:0f0e:f5dbec59 A-2278.00 0
+10-Jul-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
+10-Jul-01 Forecast transaction Expenses:Household $200.00 $1073.00
+10-Jul-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
+10-Jul-01 Forecast transaction Assets:Bank:Checking $1418.60 0
+10-Jun-27 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Jun-27 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Jul-11 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Jul-11 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Aug-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
+10-Aug-01 Forecast transaction Expenses:Household $200.00 $1073.00
+10-Aug-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
+10-Aug-01 Forecast transaction Assets:Bank:Checking $1418.60 0
+10-Jul-25 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Jul-25 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Aug-08 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Aug-08 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Sep-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
+10-Sep-01 Forecast transaction Expenses:Household $200.00 $1073.00
+10-Sep-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
+10-Sep-01 Forecast transaction Assets:Bank:Checking $1418.60 0
+10-Aug-22 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Aug-22 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Sep-05 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Sep-05 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Oct-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
+10-Oct-01 Forecast transaction Expenses:Household $200.00 $1073.00
+10-Oct-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
+10-Oct-01 Forecast transaction Assets:Bank:Checking $1418.60 0
+10-Sep-19 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Sep-19 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Oct-03 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Oct-03 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Nov-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
+10-Nov-01 Forecast transaction Expenses:Household $200.00 $1073.00
+10-Nov-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
+10-Nov-01 Forecast transaction Assets:Bank:Checking $1418.60 0
+10-Oct-17 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Oct-17 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Oct-31 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Oct-31 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Nov-14 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Nov-14 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Dec-01 Forecast transaction Expenses:Bills:Rent $873.00 $873.00
+10-Dec-01 Forecast transaction Expenses:Household $200.00 $1073.00
+10-Dec-01 Forecast transaction Income:Salary $-2491.60 $-1418.60
+10-Dec-01 Forecast transaction Assets:Bank:Checking $1418.60 0
+10-Nov-28 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Nov-28 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Dec-12 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Dec-12 Forecast transaction Assets:Bank:Checking $-85.00 0
+10-Dec-26 Forecast transaction Exp:Bill:Housecleaning $85.00 $85.00
+10-Dec-26 Forecast transaction Assets:Bank:Checking $-85.00 0
diff --git a/test/regress/E4C9A8EA.test b/test/regress/E4C9A8EA.test
index 108fb661..a305a839 100644
--- a/test/regress/E4C9A8EA.test
+++ b/test/regress/E4C9A8EA.test
@@ -11,7 +11,7 @@ reg
Expenses:Financial:Fees
>>>1
07-Dec-31 Cost basis for: RED.. As:In:RBC-:Account-RSP 4.00 RHT 4.00 RHT
- Equ:Opening-Balan:Cost -689.87 CAD -689.87 CAD
+ Eq:Opening-Balanc:Cost -689.87 CAD -689.87 CAD
4.00 RHT
08-Jan-03 Sell -- RHT -- RED .. As:In:RBC-:Account-RSP -4.00 RHT -689.87 CAD
Ex:Financi:Commissions 9.95 USD -689.87 CAD