From e56a4ffef07d9731fd6e48ab468fc4780d45945b Mon Sep 17 00:00:00 2001
From: Paolo Capriotti
Date: Wed, 9 Mar 2011 10:12:27 -0600
Subject: Running totals on a report including automated transactions are
computed with extra precision, resulting in balances differing from the sum
of their components.
---
test/regress/CAE63F5C-a.test | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
create mode 100644 test/regress/CAE63F5C-a.test
(limited to 'test/regress')
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
--
cgit v1.2.3
From bf7375db116858f387a5aa90da9d659af6a660d2 Mon Sep 17 00:00:00 2001
From: "Bradley M. Kuhn"
Date: Sun, 30 Sep 2012 14:53:05 -0400
Subject: Rounding is different for balance totals vs. postings when using
posting costs.
test/regress/CAE63F5C-b.test and test/regress/CAE63F5C-c.test should both
pass, but test/regress/CAE63F5C-c.test does not, because the total line of
$6.46 is rounded wrong; it should be $6.45.
There seems to be different rounding occurring for totals vs. postings.
This seems to be related to Bug #492.
---
test/regress/CAE63F5C-b.test | 15 +++++++++++++++
test/regress/CAE63F5C-c.test | 15 +++++++++++++++
2 files changed, 30 insertions(+)
create mode 100644 test/regress/CAE63F5C-b.test
create mode 100644 test/regress/CAE63F5C-c.test
(limited to 'test/regress')
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
--
cgit v1.2.3