From 8702c1079effb9df15a6022372ccfdc2e7d23eea Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Wed, 25 Dec 2019 15:25:45 +0200 Subject: Add test for --average-lot-prices --- test/baseline/opt-average-lot-prices.test | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 test/baseline/opt-average-lot-prices.test (limited to 'test/baseline') diff --git a/test/baseline/opt-average-lot-prices.test b/test/baseline/opt-average-lot-prices.test new file mode 100644 index 00000000..c9fe4846 --- /dev/null +++ b/test/baseline/opt-average-lot-prices.test @@ -0,0 +1,16 @@ +2019-01-01 * Opening balance + Assets:Investments 1000.00 EUR + Equity:Opening balance -1000.00 EUR + +2019-03-01 * Bought FOO + Assets:Investments 2 FOO @ 150.00 EUR + Assets:Investments -300.00 EUR + +2019-06-01 * Bought FOO + Assets:Investments 1 FOO @ 180.00 EUR + Assets:Investments -180.00 EUR + +test bal assets:investments --average-lot-prices + 520.00 EUR + 3 FOO {160.00 EUR} Assets:Investments +end test -- cgit v1.2.3