summaryrefslogtreecommitdiff
path: root/test/regress/375.test
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2014-05-30 18:27:22 -0400
committerMartin Michlmayr <tbm@cyrius.com>2014-05-30 18:27:22 -0400
commitfafd7c13460c872c7c5736932a4264a6a3b1fbe5 (patch)
treeb076b0503ba960e4bc76948880c2109b2e03fe81 /test/regress/375.test
parentb6b6a98d0daeb537d1c0f814bace92939d564f1b (diff)
downloadfork-ledger-fafd7c13460c872c7c5736932a4264a6a3b1fbe5.tar.gz
fork-ledger-fafd7c13460c872c7c5736932a4264a6a3b1fbe5.tar.bz2
fork-ledger-fafd7c13460c872c7c5736932a4264a6a3b1fbe5.zip
Check whether a month is followed by a year
Bug fix for #375
Diffstat (limited to 'test/regress/375.test')
-rw-r--r--test/regress/375.test36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/regress/375.test b/test/regress/375.test
new file mode 100644
index 00000000..84254155
--- /dev/null
+++ b/test/regress/375.test
@@ -0,0 +1,36 @@
+
+2009-01-01 * Jan 09
+ Assets:Current 100.00 EUR
+ Income:Salary
+
+2009-02-01 * Feb 09
+ Assets:Current 100.00 EUR
+ Income:Salary
+
+2009-03-01 * Mar 09
+ Assets:Current 100.00 EUR
+ Income:Salary
+
+2010-01-01 * Jan 10
+ Assets:Current 100.00 EUR
+ Income:Salary
+
+2010-02-01 * Feb 10
+ Assets:Current 100.00 EUR
+ Income:Salary
+
+test reg -p "until Feb 2009"
+09-Jan-01 Jan 09 Assets:Current 100.00 EUR 100.00 EUR
+ Income:Salary -100.00 EUR 0
+end test
+
+test reg -p "until February 2009"
+09-Jan-01 Jan 09 Assets:Current 100.00 EUR 100.00 EUR
+ Income:Salary -100.00 EUR 0
+end test
+
+test reg -p "in Feb 2009"
+09-Feb-01 Feb 09 Assets:Current 100.00 EUR 100.00 EUR
+ Income:Salary -100.00 EUR 0
+end test
+