summaryrefslogtreecommitdiff
path: root/test/regress/1038_1.test
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2014-12-28 14:45:39 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2014-12-29 11:08:10 +0100
commitba35340ca9c7351beab0ff9fa7a58591eb6ad39f (patch)
tree5a72f6f1deabd7140806c2ede802a279cb5b5756 /test/regress/1038_1.test
parent0462c887ae5814d08de7d2a860c41bb1a07bee52 (diff)
downloadfork-ledger-ba35340ca9c7351beab0ff9fa7a58591eb6ad39f.tar.gz
fork-ledger-ba35340ca9c7351beab0ff9fa7a58591eb6ad39f.tar.bz2
fork-ledger-ba35340ca9c7351beab0ff9fa7a58591eb6ad39f.zip
Bugfix 1038: empty reg report for this month period
when year was specified with literal Y or year directive, but not when using apply year.
Diffstat (limited to 'test/regress/1038_1.test')
-rw-r--r--test/regress/1038_1.test18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/regress/1038_1.test b/test/regress/1038_1.test
new file mode 100644
index 00000000..c833816e
--- /dev/null
+++ b/test/regress/1038_1.test
@@ -0,0 +1,18 @@
+Y2014
+
+04/13 Bank
+ Expenses:Loan $400
+ Assets:Cash
+
+05/13 Bug 1038 Test
+ Expenses:Some:Account $500
+ Assets:Cash
+
+06/13 Landlord
+ Expenses:Rent $600
+ Assets:Cash
+
+test reg --now 2014-05-14 -p 'this month'
+14-May-13 Bug 1038 Test Expenses:Some:Account $500 $500
+ Assets:Cash $-500 0
+end test