diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2023-03-27 18:41:29 +0800 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2023-03-27 19:04:37 +0800 |
commit | 681bf11c1b631d8599ce47089aeee9c3b91d9e36 (patch) | |
tree | 9c191853968cbf52452426799b657303d8a10f2c /test | |
parent | 5bfa77c7c2eb87d221e045ce635f88378743ec29 (diff) | |
download | fork-ledger-681bf11c1b631d8599ce47089aeee9c3b91d9e36.tar.gz fork-ledger-681bf11c1b631d8599ce47089aeee9c3b91d9e36.tar.bz2 fork-ledger-681bf11c1b631d8599ce47089aeee9c3b91d9e36.zip |
Add regression test for bugs #777 and #2207
Bugs #777 and #2207 were fixed by commit 49cf3323a ("Change a use of
is_realzero to just is_zero"). Let's add test cases.
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/2207.test | 14 | ||||
-rw-r--r-- | test/regress/777.test | 8 |
2 files changed, 22 insertions, 0 deletions
diff --git a/test/regress/2207.test b/test/regress/2207.test new file mode 100644 index 00000000..38695998 --- /dev/null +++ b/test/regress/2207.test @@ -0,0 +1,14 @@ + +commodity FOO + format 1,000.00 FOO + +commodity $ + format $1,000.00 + +2023/01/03 * Transaction + Assets:Brokerage -0.003 FOO @ $16.79 + Assets:Checking + +test bal + $0.05 Assets:Checking +end test diff --git a/test/regress/777.test b/test/regress/777.test new file mode 100644 index 00000000..fbb81a70 --- /dev/null +++ b/test/regress/777.test @@ -0,0 +1,8 @@ + +2012-07-01 * Test + A (1/9 FOO) @ 200.00 EUR + B -22.22 EUR + +test bal + -22.22 EUR B +end test |