From 39635b2fde10fe55079442e667e2afdd03917fb1 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 5 Sep 2019 21:03:30 -0700 Subject: [PATCH] ;valuation: test documenting new end-date behaviour (#1083) [ci skip] --- tests/journal/valuation2.test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/journal/valuation2.test b/tests/journal/valuation2.test index 94494d3c5..cc92048ad 100644 --- a/tests/journal/valuation2.test +++ b/tests/journal/valuation2.test @@ -207,3 +207,17 @@ $ hledger -f- bal -N -V $ hledger -f- bal -N -V -e 2001 2 B a +# +< +P 2001/01/01 A 1 B +P 2002/01/01 A 2 B + +2000-01-01 + (a) 1 A + +# 21. The valuation date is the last day of the report period. In +# other words, the report end date is exclusive with respect to price +# directives. This is a change from older hledger and Ledger, where it +# was inclusive. +$ hledger -f- bal -N -V -e 2002-01-01 + 1 B a