From a0b68905ef5fd06dcb9a7827039177a4a7d37ddc Mon Sep 17 00:00:00 2001 From: Peter Pickford Date: Thu, 10 Mar 2016 00:25:19 +0000 Subject: days - do not stabalize periods spacified in days weeks - calculate start date for finding period using remainer 400/periodlength to reduce number of iterations (perhaps this ought to follow the same conventio as years months and quarters) add sample period command tests add add day period tests for forecasts and budgets add week period tests for forecasts and budgets - these do not change --- test/regress/370-forecast_period_days.test | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/regress/370-forecast_period_days.test (limited to 'test/regress/370-forecast_period_days.test') diff --git a/test/regress/370-forecast_period_days.test b/test/regress/370-forecast_period_days.test new file mode 100644 index 00000000..faf9d47b --- /dev/null +++ b/test/regress/370-forecast_period_days.test @@ -0,0 +1,17 @@ +;does not care about start date +~ every 14 days from 2010/02/23 + Expenses:Bills:Housecleaning $85.00 + Assets:Bank:Checking + +;before Sun aug 01 2010 +;now is Mon jun 21 2010 +;a Tuesday? +;forecasts period start is now first forecast transaction is now + 1 'tomorrow' +test reg --forecast 'date <[2010/08/01]' --now=2010/06/13 +10-Jun-27 Forecast transaction Ex:Bills:Housecleaning $85.00 $85.00 +10-Jun-27 Forecast transaction Assets:Bank:Checking $-85.00 0 +10-Jul-11 Forecast transaction Ex:Bills:Housecleaning $85.00 $85.00 +10-Jul-11 Forecast transaction Assets:Bank:Checking $-85.00 0 +10-Jul-25 Forecast transaction Ex:Bills:Housecleaning $85.00 $85.00 +10-Jul-25 Forecast transaction Assets:Bank:Checking $-85.00 0 +end test -- cgit v1.2.3