From 0c9e188cfb37d8f1a2e508e05fe72217aab6dfee Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Tue, 13 May 2014 00:03:39 -0400 Subject: Honour date-format for lot dates Fixes bug #383 --- test/regress/383.test | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test/regress/383.test (limited to 'test/regress/383.test') diff --git a/test/regress/383.test b/test/regress/383.test new file mode 100644 index 00000000..ab4372fd --- /dev/null +++ b/test/regress/383.test @@ -0,0 +1,29 @@ + +--input-date-format %Y:%m:%d + +D 1000.00 GBP + +2014:05:12 * Test + Assets:Investments 100 AA {2.00 GBP} [2014:01:01] @@ 200.00 GBP + Equity:Opening balance + +test bal Assets:Investments --lots --date-format %Y.%m.%d +100 AA {2.00 GBP} [2014.01.01] Assets:Investments +end test + +test bal Assets:Investments --lots --date-format %Y/%m/%d +100 AA {2.00 GBP} [2014/01/01] Assets:Investments +end test + +test bal Assets:Investments --lots --date-format %Y:%m:%d +100 AA {2.00 GBP} [2014:01:01] Assets:Investments +end test + +test bal Assets:Investments --lots --date-format %Y-%m-%d +100 AA {2.00 GBP} [2014-01-01] Assets:Investments +end test + +test bal Assets:Investments --lots --date-format %g-%b-%d +100 AA {2.00 GBP} [14-Jan-01] Assets:Investments +end test + -- cgit v1.2.3