From 681bf11c1b631d8599ce47089aeee9c3b91d9e36 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Mon, 27 Mar 2023 18:41:29 +0800 Subject: 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. --- test/regress/2207.test | 14 ++++++++++++++ test/regress/777.test | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 test/regress/2207.test create mode 100644 test/regress/777.test (limited to 'test') 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 -- cgit v1.2.3