From d38b4fc69e8bfa150af27376508df8d5eecab15b Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Fri, 3 Mar 2023 14:24:21 +0800 Subject: Add test cases for issue #2205 --- test/regress/2205_a.test | 15 +++++++++++++++ test/regress/2205_b.test | 16 ++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 test/regress/2205_a.test create mode 100644 test/regress/2205_b.test (limited to 'test') diff --git a/test/regress/2205_a.test b/test/regress/2205_a.test new file mode 100644 index 00000000..5d1ca8cf --- /dev/null +++ b/test/regress/2205_a.test @@ -0,0 +1,15 @@ + +commodity h + format 1,000.00 h + default + +2023-03-03 * Opening balance + Assets:Time 100 h + Equity:Opening balance + +test bal + 100.00 h Assets:Time + -100.00 h Equity:Opening balance +-------------------- + 0 +end test diff --git a/test/regress/2205_b.test b/test/regress/2205_b.test new file mode 100644 index 00000000..0b0a8411 --- /dev/null +++ b/test/regress/2205_b.test @@ -0,0 +1,16 @@ + +C 1.00000000 BTC = 100000000 sat + +commodity BTC + format 1.00000000 BTC + +2023-03-03 * Opening balance + Assets:Investments 1.00 BTC + Equity:Opening balance + +test bal + 1.00000000 BTC Assets:Investments + -1.00000000 BTC Equity:Opening balance +-------------------- + 0 +end test -- cgit v1.2.3