From f09111b8b9b162e59590122fa2ad3ef0e2395141 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Sun, 20 Oct 2019 05:40:49 -0700 Subject: [PATCH] ;prices: convert tests to new format [ci skip] --- tests/prices.test | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) diff --git a/tests/prices.test b/tests/prices.test index 9956b6783..4411cdf16 100644 --- a/tests/prices.test +++ b/tests/prices.test @@ -1,6 +1,5 @@ # by default only market prices are reported -hledger prices -f- -<<< +< P 2016/1/1 EUR $1.06 P 2016/2/1 EUR $1.05 @@ -12,15 +11,12 @@ P 2016/2/1 EUR $1.05 2016/1/2 spend expenses 20 EUR @ $1.07 assets:bank ->>> +$ hledger prices -f- P 2016-01-01 EUR $1.06 P 2016-02-01 EUR $1.05 ->>>2 ->>>=0 # costs from postings can be included also -hledger prices -f- --costs -<<< +< P 2016/1/1 EUR $1.06 P 2016/2/1 EUR $1.05 @@ -36,17 +32,14 @@ P 2016/2/1 EUR $1.05 2016/1/3 spend expenses 20 EUR @@ $21.45 assets:bank ->>> +$ hledger prices -f- --costs P 2016-01-01 EUR $1.06 P 2016-01-02 EUR $1.07 P 2016-01-03 EUR $1.0725 P 2016-02-01 EUR $1.05 ->>>2 ->>>=0 # inverted costs from postings can be calculated -hledger prices -f- --inverted-costs -<<< +< P 2016/1/1 EUR $1.06 P 2016/2/1 EUR $1.05 @@ -58,9 +51,7 @@ P 2016/2/1 EUR $1.05 2016/1/3 spend expenses $21.45 @@ 20.00 EUR assets:bank ->>> +$ hledger prices -f- --inverted-costs P 2016-01-01 EUR $1.06 P 2016-01-03 EUR $1.0725 P 2016-02-01 EUR $1.05 ->>>2 ->>>=0