summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2023-03-03 14:24:21 +0800
committerMartin Michlmayr <tbm@cyrius.com>2023-03-03 14:24:21 +0800
commitd38b4fc69e8bfa150af27376508df8d5eecab15b (patch)
treea17d96dbd7370ea1695dcbf3bd7d56c730509ba8 /test
parent87b6a1e43fcf3d0f33e37ff811679486637f0809 (diff)
downloadfork-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.test15
-rw-r--r--test/regress/2205_b.test16
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