summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/04C5E1CA.test18
-rw-r--r--test/regress/5A03CFC3.test72
-rw-r--r--test/regress/5FBF2ED8.test20
-rw-r--r--test/regress/647D5DB9.test17
-rw-r--r--test/regress/6DAB9FE3.test10
-rw-r--r--test/regress/727B2DF8.test81
-rw-r--r--test/regress/793F6BF0.test52
-rw-r--r--test/regress/86D2BDC4.test12
-rw-r--r--test/regress/B68FFB0D.test15
-rw-r--r--test/regress/BBFA1759.test10
-rw-r--r--test/regress/C523E23F.test21
-rw-r--r--test/regress/D943AE0F.test13
12 files changed, 341 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/5FBF2ED8.test b/test/regress/5FBF2ED8.test
new file mode 100644
index 00000000..78df5a6e
--- /dev/null
+++ b/test/regress/5FBF2ED8.test
@@ -0,0 +1,20 @@
+bal -B
+<<<
+2008/01/01 * Checking balance
+ Assets:Bank:Checking £0.00
+ Equity:Opening Balances
+
+2008/02/02 Salary
+ Income:Employer £-334.00
+ Assets:Bank:Checking $512.85 @@ £334.00
+
+2008/03/02 Salary
+ Income:Employer £-248.07
+ Assets:Bank:Checking $404.82 @@ £248.07
+>>>1
+ £582.07 Assets:Bank:Checking
+ £-582.07 Income:Employer
+--------------------
+ 0
+>>>2
+=== 0
diff --git a/test/regress/647D5DB9.test b/test/regress/647D5DB9.test
new file mode 100644
index 00000000..2d6b78e3
--- /dev/null
+++ b/test/regress/647D5DB9.test
@@ -0,0 +1,17 @@
+bal --end 2008/12/31 -JV Equities
+<<<
+2008/01/01 * Purchase Apple shares
+ Equities 1000 AAPL @ $2
+ Cash
+
+2008/06/30 * Sell some Apple shares
+ Equities -500 AAPL @ $2.5
+ Cash
+
+P 2008/10/01 02:18:02 AAPL $3
+P 2009/01/31 02:18:02 AAPL $4
+P 3000/01/01 02:18:02 APPL $100
+>>>1
+2008-12-31 1500
+>>>2
+=== 0
diff --git a/test/regress/6DAB9FE3.test b/test/regress/6DAB9FE3.test
new file mode 100644
index 00000000..50b944ae
--- /dev/null
+++ b/test/regress/6DAB9FE3.test
@@ -0,0 +1,10 @@
+reg -E
+<<<
+2009/01/01 Sample
+ assets 0 FOO @ $8.88
+ equity
+>>>1
+09-Jan-01 Sample assets 0 0
+ equity 0 0
+>>>2
+=== 0
diff --git a/test/regress/727B2DF8.test b/test/regress/727B2DF8.test
new file mode 100644
index 00000000..599090a1
--- /dev/null
+++ b/test/regress/727B2DF8.test
@@ -0,0 +1,81 @@
+reg --color
+<<<
+N $
+
+= account =~ /^Expenses:Books/
+ (Liabilities:Taxes) -0.10
+
+~ Monthly
+ Assets:Bank:Checking $500.00
+ Income:Salary
+
+2004/05/01 * Checking balance
+ Assets:Bank:Checking $1,000.00
+ Equity:Opening Balances
+
+2004/05/03=2004/05/01 * Investment balance
+ Assets:Brokerage 50 AAPL @ $30.00
+ Equity:Opening Balances
+
+2004/05/14 * Páy dày
+ Assets:Bank:Checking 500.00€
+ Income:Salary
+
+2004/05/14 * Another dày in which there is Páying
+ Asséts:Bánk:Chécking:Asséts:Bánk:Chécking $500.00
+ Income:Salary
+
+2004/05/14 * Another dày in which there is Páying
+ Русский язык:Русский язык:Русский язык:Русский язык $1000.00
+ Income:Salary
+
+2004/05/27 Book Store
+ Expenses:Books $20.00
+ Expenses:Cards $40.00
+ Expenses:Docs $30.00
+ Liabilities:MasterCard
+
+2004/05/27 (100) Credit card company
+ ; This is an xact note!
+ ; Sample: Value
+ Liabilities:MasterCard $20.00
+ ; This is a posting note!
+ ; Sample: Another Value
+ ; :MyTag:
+ Assets:Bank:Checking
+ ; :AnotherTag:
+>>>1
+04-May-01 Checking balance Assets:Bank:Checking  $1,000.00 $1,000.00
+ Eq:Opening Balances  $-1,000.00 0
+04-May-03 Investment balance Assets:Brokerage  50 AAPL 50 AAPL
+ Eq:Opening Balances  $-1,500.00 $-1,500.00
+ 50 AAPL
+04-May-14 Páy dày Assets:Bank:Checking  500.00€ $-1,500.00
+ 50 AAPL
+ 500.00€
+ Income:Salary  -500.00€ $-1,500.00
+ 50 AAPL
+04-May-14 Another dày in whic.. ..Bá:Ch:As:Bá:Chécking $500.00 $-1,000.00
+ 50 AAPL
+ Income:Salary  $-500.00 $-1,500.00
+ 50 AAPL
+04-May-14 Another dày in whic.. Ру:Ру:Ру:Русский язык  $1,000.00 $-500.00
+ 50 AAPL
+ Income:Salary  $-1,000.00 $-1,500.00
+ 50 AAPL
+04-May-27 Book Store  Expenses:Books  $20.00 $-1,480.00
+ 50 AAPL
+ Expenses:Cards  $40.00 $-1,440.00
+ 50 AAPL
+ Expenses:Docs  $30.00 $-1,410.00
+ 50 AAPL
+ Liabilities:MasterCard $-90.00 $-1,500.00
+ 50 AAPL
+ (Liabilities:Taxes)  $-2.00 $-1,502.00
+ 50 AAPL
+04-May-27 Credit card company  Liabilities:MasterCard $20.00 $-1,482.00
+ 50 AAPL
+ Assets:Bank:Checking  $-20.00 $-1,502.00
+ 50 AAPL
+>>>2
+=== 0
diff --git a/test/regress/793F6BF0.test b/test/regress/793F6BF0.test
new file mode 100644
index 00000000..a4e1234c
--- /dev/null
+++ b/test/regress/793F6BF0.test
@@ -0,0 +1,52 @@
+entry 2009/03/15 book 10
+<<<
+N $
+
+= account =~ /^Expenses:Books/
+ (Liabilities:Taxes) -0.10
+
+~ Monthly
+ Assets:Bank:Checking $500.00
+ Income:Salary
+
+2004/05/01 * Checking balance
+ Assets:Bank:Checking $1,000.00
+ Equity:Opening Balances
+
+2004/05/03=2004/05/01 * Investment balance
+ Assets:Brokerage 50 AAPL @ $30.00
+ Equity:Opening Balances
+
+2004/05/14 * Páy dày
+ Assets:Bank:Checking 500.00€
+ Income:Salary
+
+2004/05/14 * Another dày in which there is Páying
+ Asséts:Bánk:Chécking:Asséts:Bánk:Chécking $500.00
+ Income:Salary
+
+2004/05/14 * Another dày in which there is Páying
+ Русский язык:Русский язык:Русский язык:Русский язык $1000.00
+ Income:Salary
+
+2004/05/27 Book Store
+ Expenses:Books $20.00
+ Expenses:Cards $40.00
+ Expenses:Docs $30.00
+ Liabilities:MasterCard
+
+2004/05/27 (100) Credit card company
+ ; This is an xact note!
+ ; Sample: Value
+ Liabilities:MasterCard $20.00
+ ; This is a posting note!
+ ; Sample: Another Value
+ ; :MyTag:
+ Assets:Bank:Checking
+ ; :AnotherTag:
+>>>1
+2009/03/15 Book Store
+ Expenses:Books $10.00
+ Liabilities:MasterCard
+>>>2
+=== 0
diff --git a/test/regress/86D2BDC4.test b/test/regress/86D2BDC4.test
new file mode 100644
index 00000000..8cd51e42
--- /dev/null
+++ b/test/regress/86D2BDC4.test
@@ -0,0 +1,12 @@
+reg -B
+<<<
+2009/06/03 Westjet
+ Expenses:Transportation:Air C$429.80 @ 1.572865
+ Expenses:Bank:Fees 2.73
+ Liabilities:Mastercard
+>>>1
+09-Jun-03 Westjet Ex:Transportation:Air 676.017377 676.017377
+ Expenses:Bank:Fees 2.73 678.747377
+ Liabilities:Mastercard -678.747377 0
+>>>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
diff --git a/test/regress/BBFA1759.test b/test/regress/BBFA1759.test
new file mode 100644
index 00000000..ca6842dc
--- /dev/null
+++ b/test/regress/BBFA1759.test
@@ -0,0 +1,10 @@
+period june 2008
+<<<
+>>>1
+global details =>
+
+ start: 2008-06-01
+ end: 2008-07-01
+ factor: 1
+>>>2
+=== 0
diff --git a/test/regress/C523E23F.test b/test/regress/C523E23F.test
new file mode 100644
index 00000000..b8b08e00
--- /dev/null
+++ b/test/regress/C523E23F.test
@@ -0,0 +1,21 @@
+bal
+<<<
+D 1.000,00€
+
+2009/03/16 * denn's
+ ; Kauf: Yogi-Tee
+ Aufwand:Einkauf:Lebensmittel 17,94€
+ Aktiva:Bank:Girokonto
+
+2009/03/24 Ansparen
+ Aktiva:Bank:Sparkonto 800,00€
+ Aktiva:Bank:Girokonto
+>>>1
+ -17,94€ Aktiva:Bank
+ -817,94€ Girokonto
+ 800,00€ Sparkonto
+ 17,94€ Aufwand:Einkauf:Lebensmittel
+--------------------
+ 0
+>>>2
+=== 0
diff --git a/test/regress/D943AE0F.test b/test/regress/D943AE0F.test
new file mode 100644
index 00000000..3e568db6
--- /dev/null
+++ b/test/regress/D943AE0F.test
@@ -0,0 +1,13 @@
+reg -V --end=2009/06/16
+<<<
+2008/04/15 * Paid expenses back from cie.
+ Expenses:Cie-Reimbursements 2000 CAD @ 1.10 EUR
+ Assets:Checking
+
+P 2008/04/20 00:00:00 CAD 1.20 EUR
+>>>1
+08-Apr-15 Paid expenses back .. Ex:Cie-Reimbursements 2200.00 EUR 2200.00 EUR
+ Assets:Checking -2200.00 EUR 0
+09-Jun-16 Commodities revalued <Revalued> 200.00 EUR 200.00 EUR
+>>>2
+=== 0