summaryrefslogtreecommitdiff
path: root/test/baseline/opt-primary-date.test
diff options
context:
space:
mode:
authortripun <tripun@gmail.com>2014-08-07 00:39:29 +0530
committerMartin Michlmayr <tbm@cyrius.com>2014-08-12 11:18:45 +0200
commit8dbeb91493cebd461fed15e66bde685b3edec0fd (patch)
tree759a19c173ebd52c185a3ec737f773146157ccb9 /test/baseline/opt-primary-date.test
parent1b84d960a35bbf0b7110b77bced7597fe7443610 (diff)
downloadfork-ledger-8dbeb91493cebd461fed15e66bde685b3edec0fd.tar.gz
fork-ledger-8dbeb91493cebd461fed15e66bde685b3edec0fd.tar.bz2
fork-ledger-8dbeb91493cebd461fed15e66bde685b3edec0fd.zip
Add --actual-dates tests
Diffstat (limited to 'test/baseline/opt-primary-date.test')
-rw-r--r--test/baseline/opt-primary-date.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/baseline/opt-primary-date.test b/test/baseline/opt-primary-date.test
index ae9e1dea..e433a8f9 100644
--- a/test/baseline/opt-primary-date.test
+++ b/test/baseline/opt-primary-date.test
@@ -30,6 +30,10 @@ test bal Income --primary-date --effective --begin 2014/01/01 --end 2014/01/14
$ -200.00 Income: Client ABC
end test
+test bal Income --actual-dates --effective --begin 2014/01/01 --end 2014/01/14
+ $ -200.00 Income: Client ABC
+end test
+
test reg Income --begin 2014/01/01 --end 2014/01/14
14-Jan-01 Client invoice Income: Client ABC $ -100.00 $ -100.00
14-Jan-01 Client invoice Income: Client ABC $ -100.00 $ -200.00
@@ -44,6 +48,11 @@ test reg Income --primary-date --effective --begin 2014/01/01 --end 2014/01/14
14-Jan-01 Client invoice Income: Client ABC $ -100.00 $ -200.00
end test
+test reg Income --actual-dates --effective --begin 2014/01/01 --end 2014/01/14
+14-Jan-01 Client invoice Income: Client ABC $ -100.00 $ -100.00
+14-Jan-01 Client invoice Income: Client ABC $ -100.00 $ -200.00
+end test
+
test reg checking
13-Oct-16 Bountiful Blessings.. Assets:Checking $ -225.00 $ -225.00
end test
@@ -79,3 +88,12 @@ test register Groceries --primary-date --effective
Expense:Food:Groceries $ 37.50 $ 225.00
end test
+test register Groceries --actual-dates --effective
+13-Oct-16 Bountiful Blessings.. Expense:Food:Groceries $ 37.50 $ 37.50
+ Expense:Food:Groceries $ 37.50 $ 75.00
+ Expense:Food:Groceries $ 37.50 $ 112.50
+ Expense:Food:Groceries $ 37.50 $ 150.00
+ Expense:Food:Groceries $ 37.50 $ 187.50
+ Expense:Food:Groceries $ 37.50 $ 225.00
+end test
+