summaryrefslogtreecommitdiff
path: root/test/baseline
diff options
context:
space:
mode:
authorAlexis Hildebrandt <afh@surryhill.net>2015-02-24 20:27:30 +0100
committerAlexis Hildebrandt <afh@surryhill.net>2015-02-24 20:27:30 +0100
commit5e6d5e33af8dbfcca3030fda2dac068efa00944a (patch)
tree8adf53fcf81a312e8bad1bb6a48f2aac88631610 /test/baseline
parent7358ced548d94b49c5b07dde08dcd8099c4f5c9d (diff)
parent87d938f9c3c3b25f03f07251a649f003e48602d0 (diff)
downloadfork-ledger-5e6d5e33af8dbfcca3030fda2dac068efa00944a.tar.gz
fork-ledger-5e6d5e33af8dbfcca3030fda2dac068efa00944a.tar.bz2
fork-ledger-5e6d5e33af8dbfcca3030fda2dac068efa00944a.zip
Merge pull request #396 from thdox/auto-match
Fix Auto match
Diffstat (limited to 'test/baseline')
-rw-r--r--test/baseline/opt-auto-match.test47
1 files changed, 44 insertions, 3 deletions
diff --git a/test/baseline/opt-auto-match.test b/test/baseline/opt-auto-match.test
index 7c3fb40a..54a1053b 100644
--- a/test/baseline/opt-auto-match.test
+++ b/test/baseline/opt-auto-match.test
@@ -14,17 +14,58 @@
Expenses:Food 20.00 EUR
Liabilities:CC -20.00 EUR
+test --input-date-format "%Y-%m-%d" convert test/baseline/opt-auto-match.dat
+2012/03/01 * Food
+ Expenses:Unknown 10
+ Equity:Unknown
+
+2012/03/02 * Phone
+ Expenses:Unknown 10
+ Equity:Unknown
+
+2012/03/02 * Dining
+ Expenses:Unknown 10
+ Equity:Unknown
+end test
+
test --input-date-format "%Y-%m-%d" --auto-match convert test/baseline/opt-auto-match.dat
2012/03/01 * Food
- Assets:Cash 10
+ Expenses:Food 10
Equity:Unknown
2012/03/02 * Phone
- Assets:Cash 10
+ Expenses:Phone 10
Equity:Unknown
2012/03/02 * Dining
- Liabilities:CC 10
+ Expenses:Food 10
Equity:Unknown
end test
+test --input-date-format "%Y-%m-%d" --account Assets:Bank convert test/baseline/opt-auto-match.dat
+2012/03/01 * Food
+ Expenses:Unknown 10
+ Assets:Bank
+
+2012/03/02 * Phone
+ Expenses:Unknown 10
+ Assets:Bank
+
+2012/03/02 * Dining
+ Expenses:Unknown 10
+ Assets:Bank
+end test
+
+test --input-date-format "%Y-%m-%d" --auto-match --account Assets:Bank convert test/baseline/opt-auto-match.dat
+2012/03/01 * Food
+ Expenses:Food 10
+ Assets:Bank
+
+2012/03/02 * Phone
+ Expenses:Phone 10
+ Assets:Bank
+
+2012/03/02 * Dining
+ Expenses:Food 10
+ Assets:Bank
+end test