summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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