summaryrefslogtreecommitdiff
path: root/test/regress
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-10-03 08:22:37 -0700
committerJohn Wiegley <johnw@newartisans.com>2012-10-03 08:22:37 -0700
commit46986ed4b131fee8ddcc987b9debfb6fe4abc850 (patch)
tree488b628c417eed0e7f57f8bf6d11fe4b933eaf7f /test/regress
parentdcd64a67823b2f53cc2e28fe74d5ab2cbcf4e60c (diff)
parentbf7375db116858f387a5aa90da9d659af6a660d2 (diff)
downloadfork-ledger-46986ed4b131fee8ddcc987b9debfb6fe4abc850.tar.gz
fork-ledger-46986ed4b131fee8ddcc987b9debfb6fe4abc850.tar.bz2
fork-ledger-46986ed4b131fee8ddcc987b9debfb6fe4abc850.zip
Merge pull request #84 from bkuhn/bug-492
Regression tests for Bug 492
Diffstat (limited to 'test/regress')
-rw-r--r--test/regress/CAE63F5C-a.test17
-rw-r--r--test/regress/CAE63F5C-b.test15
-rw-r--r--test/regress/CAE63F5C-c.test15
3 files changed, 47 insertions, 0 deletions
diff --git a/test/regress/CAE63F5C-a.test b/test/regress/CAE63F5C-a.test
new file mode 100644
index 00000000..4465bd2f
--- /dev/null
+++ b/test/regress/CAE63F5C-a.test
@@ -0,0 +1,17 @@
+2011/03/01 test1
+ a 4.00 €
+ b
+
+2011/03/02 test2
+ a 4.00 €
+ b
+
+2011/03/03 test2
+ a 4.00 €
+ b
+
+test reg a
+11-Mar-01 test1 a 4.00 € 4.00 €
+11-Mar-02 test2 a 4.00 € 8.00 €
+11-Mar-03 test2 a 4.00 € 12.00 €
+end test
diff --git a/test/regress/CAE63F5C-b.test b/test/regress/CAE63F5C-b.test
new file mode 100644
index 00000000..c0b7efd8
--- /dev/null
+++ b/test/regress/CAE63F5C-b.test
@@ -0,0 +1,15 @@
+2012/08/22 Payment
+ Accrued €208.00 {=$1.3109} @ $1.2799
+ Expenses €4.16 {=$1.2798689} @ $1.2799
+ Assets $-271.54
+ Income:Currency Conversion $-6.45
+
+test bal -X $
+ $272.67 Accrued
+ $-271.54 Assets
+ $6.45 Equity:Capital Gains
+ $5.32 Expenses
+ $-6.45 Income:Currency Conversion
+--------------------
+ $6.45
+end test
diff --git a/test/regress/CAE63F5C-c.test b/test/regress/CAE63F5C-c.test
new file mode 100644
index 00000000..ae2d7d10
--- /dev/null
+++ b/test/regress/CAE63F5C-c.test
@@ -0,0 +1,15 @@
+2012/08/22 Payment
+ Accrued €208.00 {=$1.3109} @ $1.2798689
+ Expenses €4.16 {=$1.2798689} @ $1.2798689
+ Assets $-271.54
+ Income:Currency Conversion $-6.45
+
+test bal -X $
+ $272.67 Accrued
+ $-271.54 Assets
+ $6.45 Equity:Capital Gains
+ $5.32 Expenses
+ $-6.45 Income:Currency Conversion
+--------------------
+ $6.45
+end test