diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2023-03-03 14:24:21 +0800 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2023-03-03 14:24:21 +0800 |
commit | d38b4fc69e8bfa150af27376508df8d5eecab15b (patch) | |
tree | a17d96dbd7370ea1695dcbf3bd7d56c730509ba8 /test | |
parent | 87b6a1e43fcf3d0f33e37ff811679486637f0809 (diff) | |
download | fork-ledger-d38b4fc69e8bfa150af27376508df8d5eecab15b.tar.gz fork-ledger-d38b4fc69e8bfa150af27376508df8d5eecab15b.tar.bz2 fork-ledger-d38b4fc69e8bfa150af27376508df8d5eecab15b.zip |
Add test cases for issue #2205
Diffstat (limited to 'test')
-rw-r--r-- | test/regress/2205_a.test | 15 | ||||
-rw-r--r-- | test/regress/2205_b.test | 16 |
2 files changed, 31 insertions, 0 deletions
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 |