summaryrefslogtreecommitdiff
path: root/test/regress/commodity_equivalency.test
diff options
context:
space:
mode:
authorMaria <tuy_mearly@aleeas.com>2022-10-06 05:39:41 -0400
committerMartin Michlmayr <tbm@cyrius.com>2022-10-11 01:13:41 +0200
commit6cf04c38d21150153cd636be1325b0b204797d06 (patch)
treebdbe6350b999f77aa04cb5b09f40de87c525c521 /test/regress/commodity_equivalency.test
parent7cfc585deb5877c558f150a2fa90cfe5c705fcbb (diff)
downloadfork-ledger-6cf04c38d21150153cd636be1325b0b204797d06.tar.gz
fork-ledger-6cf04c38d21150153cd636be1325b0b204797d06.tar.bz2
fork-ledger-6cf04c38d21150153cd636be1325b0b204797d06.zip
Fix balancing commodity with smaller unit.
Diffstat (limited to 'test/regress/commodity_equivalency.test')
-rw-r--r--test/regress/commodity_equivalency.test13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/regress/commodity_equivalency.test b/test/regress/commodity_equivalency.test
new file mode 100644
index 00000000..400ab2bf
--- /dev/null
+++ b/test/regress/commodity_equivalency.test
@@ -0,0 +1,13 @@
+C 1.00000000 BTC = 100000000 sat
+
+2022/10/01 Sell
+ Bank $20000
+ Wallet -1 BTC
+
+test bal
+ $20000 Bank
+ -1.00000000 BTC Wallet
+--------------------
+ $20000
+ -1.00000000 BTC
+end test