summaryrefslogtreecommitdiff
path: root/test/baseline
diff options
context:
space:
mode:
authorthdox <thdox@free.fr>2015-02-22 16:51:57 +0100
committerthdox <thdox@free.fr>2015-02-22 16:51:57 +0100
commit788ffc2a4bfdb95782163eeb463ff9c05947a311 (patch)
tree0111b3a597a5b1f9ac4303d75b90ea424a64f417 /test/baseline
parent80e432a7b269f247e87884f42e49f4d72ca35fe1 (diff)
downloadfork-ledger-788ffc2a4bfdb95782163eeb463ff9c05947a311.tar.gz
fork-ledger-788ffc2a4bfdb95782163eeb463ff9c05947a311.tar.bz2
fork-ledger-788ffc2a4bfdb95782163eeb463ff9c05947a311.zip
Update test for --auto-match option.
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