summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/regress/1998.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/regress/1998.test b/test/regress/1998.test
new file mode 100644
index 00000000..e5fbdeda
--- /dev/null
+++ b/test/regress/1998.test
@@ -0,0 +1,14 @@
+2021-01-02 Same commodity, different values
+ Assets -1 Stock {100 USD} [2021-01-01]
+ Assets 1 Stock {100 EUR} [2021-01-01]
+ Equity
+
+test bal --lots
+1 Stock {EUR100} [2021/01/01]
+-1 Stock {USD100} [2021/01/01] Assets
+-1 Stock {EUR100} [2021/01/01]
+1 Stock {USD100} [2021/01/01] Equity
+--------------------
+ 0
+end test
+