summaryrefslogtreecommitdiff
path: root/test/regress/889BB167.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-11 03:06:03 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-03-11 03:06:03 -0500
commit0d9d8453387e0f49f0dd4ea4b5f090da91c283bd (patch)
tree792e017c04532c93a4932856bd66e3dbfe9b37b9 /test/regress/889BB167.test
parent2a41649584c731024c3d3331b8a4a5f4011b9693 (diff)
downloadfork-ledger-0d9d8453387e0f49f0dd4ea4b5f090da91c283bd.tar.gz
fork-ledger-0d9d8453387e0f49f0dd4ea4b5f090da91c283bd.tar.bz2
fork-ledger-0d9d8453387e0f49f0dd4ea4b5f090da91c283bd.zip
Corrected a rounding error in nail_down
Fixes #678
Diffstat (limited to 'test/regress/889BB167.test')
-rw-r--r--test/regress/889BB167.test17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/regress/889BB167.test b/test/regress/889BB167.test
new file mode 100644
index 00000000..02e25ab6
--- /dev/null
+++ b/test/regress/889BB167.test
@@ -0,0 +1,17 @@
+D 1000.00 GBP
+
+P 2011-01-01 EUR 0.8604 GBP
+P 2011-02-01 EUR 0.8576 GBP
+
+2011-01-31 * AdSense earnings
+ Assets:Receivable:AdSense 11.00 EUR
+ Income:AdSense
+
+2011-02-28 * AdSense earnings
+ Assets:Receivable:AdSense 10.00 EUR
+ Income:AdSense
+
+test reg income:adse -X GBP -H
+11-Jan-31 AdSense earnings Income:AdSense -9.46 GBP -9.46 GBP
+11-Feb-28 AdSense earnings Income:AdSense -8.58 GBP -18.04 GBP
+end test