diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-10-02 18:33:26 -0400 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-10-02 18:33:26 -0400 |
commit | 96223f9e2032e359c08218861f636e4f97edf2cd (patch) | |
tree | 07eb3afe3c6cd4eba893cecd0de835235c182093 /test/regress/1072.test | |
parent | fbcb5e9093464fb53c2d5f55caf161e71d6a9f02 (diff) | |
download | fork-ledger-96223f9e2032e359c08218861f636e4f97edf2cd.tar.gz fork-ledger-96223f9e2032e359c08218861f636e4f97edf2cd.tar.bz2 fork-ledger-96223f9e2032e359c08218861f636e4f97edf2cd.zip |
Add ISO 8601 date as recognized date string
Dates specified via --begin and --end are converted to a value expression
using an ISO 8601 (yyyy-mm-dd) date, but this date was not recognized by
ledger.
Bug fix for #1072
Diffstat (limited to 'test/regress/1072.test')
-rw-r--r-- | test/regress/1072.test | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/test/regress/1072.test b/test/regress/1072.test new file mode 100644 index 00000000..3f58b83f --- /dev/null +++ b/test/regress/1072.test @@ -0,0 +1,31 @@ + +--input-date-format %d/%m/%y +--date-format %d/%m/%y + +1/1/14 * Test + A $10 + B + +12/1/14 * Test + A $20 + B + +test --input-date-format %d/%m/%y reg --begin 2/1/13 +01/01/14 Test A $10 $10 + B $-10 0 +12/01/14 Test A $20 $20 + B $-20 0 +end test + +test --input-date-format %d/%m/%y reg --begin 1/1/14 +01/01/14 Test A $10 $10 + B $-10 0 +12/01/14 Test A $20 $20 + B $-20 0 +end test + +test --input-date-format %d/%m/%y reg --begin 2/1/14 +12/01/14 Test A $20 $20 + B $-20 0 +end test + |