summaryrefslogtreecommitdiff
path: root/test/regress/370-budget_period_weeks.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2016-03-14 06:56:46 -0700
committerJohn Wiegley <johnw@newartisans.com>2016-03-14 06:56:46 -0700
commita505538e100db388cb692d38678f1e8a5061d868 (patch)
treebd79ca07c7104e7e6ecf89b887b7c90e194729a2 /test/regress/370-budget_period_weeks.test
parent6770d00dba467d55921c3676a339cac8b221f214 (diff)
parenta0b68905ef5fd06dcb9a7827039177a4a7d37ddc (diff)
downloadfork-ledger-a505538e100db388cb692d38678f1e8a5061d868.tar.gz
fork-ledger-a505538e100db388cb692d38678f1e8a5061d868.tar.bz2
fork-ledger-a505538e100db388cb692d38678f1e8a5061d868.zip
Merge pull request #450 from ppickfor/bug-370
Don't stabilize days periods, reduce number of iterations to find start of period for weeks
Diffstat (limited to 'test/regress/370-budget_period_weeks.test')
-rw-r--r--test/regress/370-budget_period_weeks.test29
1 files changed, 29 insertions, 0 deletions
diff --git a/test/regress/370-budget_period_weeks.test b/test/regress/370-budget_period_weeks.test
new file mode 100644
index 00000000..8d4801a6
--- /dev/null
+++ b/test/regress/370-budget_period_weeks.test
@@ -0,0 +1,29 @@
+;budgets care about start dates
+~ every 2 weeks 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?
+;
+test reg --budget --now=2010/06/13
+10-Feb-23 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00
+10-Feb-23 Budget transaction Assets:Bank:Checking $85.00 0
+10-Feb-28 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00
+10-Feb-28 Budget transaction Assets:Bank:Checking $85.00 0
+10-Mar-14 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00
+10-Mar-14 Budget transaction Assets:Bank:Checking $85.00 0
+10-Mar-28 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00
+10-Mar-28 Budget transaction Assets:Bank:Checking $85.00 0
+10-Apr-11 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00
+10-Apr-11 Budget transaction Assets:Bank:Checking $85.00 0
+10-Apr-25 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00
+10-Apr-25 Budget transaction Assets:Bank:Checking $85.00 0
+10-May-09 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00
+10-May-09 Budget transaction Assets:Bank:Checking $85.00 0
+10-May-23 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00
+10-May-23 Budget transaction Assets:Bank:Checking $85.00 0
+10-Jun-06 Budget transaction Ex:Bills:Housecleaning $-85.00 $-85.00
+10-Jun-06 Budget transaction Assets:Bank:Checking $85.00 0
+end test