added precision directive test
This commit is contained in:
parent
49ea0a1380
commit
06a74e7a61
3 changed files with 56 additions and 0 deletions
17
rounding/bug_reports/dir-commodity-precision-2.test
Normal file
17
rounding/bug_reports/dir-commodity-precision-2.test
Normal file
|
@ -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
|
20
rounding/bug_reports/dir-commodity-precision-3.test
Normal file
20
rounding/bug_reports/dir-commodity-precision-3.test
Normal file
|
@ -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
|
19
rounding/bug_reports/dir-commodity-precision.test
Normal file
19
rounding/bug_reports/dir-commodity-precision.test
Normal file
|
@ -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
|
Loading…
Reference in a new issue