From 06a74e7a6105d206e6bfb0598b40800c161e95e7 2014-07-01 18:50:51 From: tripun Date: 2014-07-01 18:50:51 Subject: [PATCH] added precision directive test --- diff --git a/rounding/bug_reports/dir-commodity-precision-2.test b/rounding/bug_reports/dir-commodity-precision-2.test new file mode 100644 index 0000000000000000000000000000000000000000..551dbdfe1cfbf6516b8d1f4b36667b97fa73a34f --- /dev/null +++ b/rounding/bug_reports/dir-commodity-precision-2.test @@ -0,0 +1,17 @@ +D 10.00 EUR +commodity EUR + precision 2 + default + +2014-01-01 Opening balance + Assets:Investments 10 AAA @ 10.1234 EUR + Assets:Investments 10 BBB @ 10.5692 EUR + Equity:Opening balance + + +test -V bal + 206.92 EUR Assets:Investments + -206.92 EUR Equity:Opening balance +-------------------- + 0 +end test diff --git a/rounding/bug_reports/dir-commodity-precision-3.test b/rounding/bug_reports/dir-commodity-precision-3.test new file mode 100644 index 0000000000000000000000000000000000000000..76d88577859ff4d066bd65ad7ee329ba53e072d4 --- /dev/null +++ b/rounding/bug_reports/dir-commodity-precision-3.test @@ -0,0 +1,20 @@ +D $1000.00 +commodity $ + precision 2 + default + +2014-06-15 Test 1 + Liabilities:Payable €-19.86 @ $1.3869 + Expenses + +2014-06-16 Test 2 + Liabilities:Payable €-19.86 @ $1.3869 + Expenses + + +test -V bal + $55.08 Expenses + $-55.08 Liabilities:Payable +-------------------- + 0 +end test diff --git a/rounding/bug_reports/dir-commodity-precision.test b/rounding/bug_reports/dir-commodity-precision.test new file mode 100644 index 0000000000000000000000000000000000000000..b8c4382a558b5c14416255c76a7d9b32103d997f --- /dev/null +++ b/rounding/bug_reports/dir-commodity-precision.test @@ -0,0 +1,19 @@ +D 1000.00 EUR +commodity EUR + precision 2 + default + +2012-01-01 * + A 1 AAA @@ 10.00 EUR + A 1 BBB @@ 20.00 EUR + C + +P 2012-07-01 AAA 10.123 EUR +P 2012-07-01 BBB 20.123 EUR + +test -V bal + 30.24 EUR A + -30.00 EUR C +-------------------- + 0.24 EUR +end test