diff options
author | Craig Earls <enderw88@gmail.com> | 2011-11-22 21:53:55 -0700 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-02-10 09:36:37 -1000 |
commit | d8f0d927f7c8de4d975739355968ba21e7e76e7f (patch) | |
tree | de2ab3eae22916e1db701fc06038d296ee68ad10 /test | |
parent | 443eba0adc4363886ad14dd428ff6853d616470e (diff) | |
download | ledger-d8f0d927f7c8de4d975739355968ba21e7e76e7f.tar.gz ledger-d8f0d927f7c8de4d975739355968ba21e7e76e7f.tar.bz2 ledger-d8f0d927f7c8de4d975739355968ba21e7e76e7f.zip |
contains a transaction that cause a divide by zero error
Diffstat (limited to 'test')
-rw-r--r-- | test/divzero.dat | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/divzero.dat b/test/divzero.dat new file mode 100644 index 00000000..009c9d64 --- /dev/null +++ b/test/divzero.dat @@ -0,0 +1,11 @@ +; -*- ledger -*- +; Time-stamp: <2011-11-22 13:59 (cpearls)> + +; this journal file will cause a divide by zero error. The divide by +; zero goes away if you add a significant figure to any of the last +; divisors in either transaction ( "10.74" -> "10.740" ) + +2011/04/05 * VSGBX Dividend + Assets:Investments:401K:Matching ( (1.0/3.0)*0.11/10.74 VSGBX) ; 0.003414 + Assets:Investments:401K:Deferred ( (2.0/3.0)*0.11/10.74 VSGBX) ; 0.006828 + Income:Exempt:Dividends $-0.11 |