summaryrefslogtreecommitdiff
path: root/test/baseline/feat-convert-with-directives.test
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2014-05-26 18:26:55 -0400
committerMartin Michlmayr <tbm@cyrius.com>2014-05-26 18:26:55 -0400
commit235c770d4a92b6087e5cd8d4c104f8b69aefd796 (patch)
tree2aa97509b5fa961b3556875555b5d096061501b6 /test/baseline/feat-convert-with-directives.test
parent3582fb360cb10175729274fbe27125d1ec87b2f2 (diff)
downloadfork-ledger-235c770d4a92b6087e5cd8d4c104f8b69aefd796.tar.gz
fork-ledger-235c770d4a92b6087e5cd8d4c104f8b69aefd796.tar.bz2
fork-ledger-235c770d4a92b6087e5cd8d4c104f8b69aefd796.zip
Fix typo in filename
Diffstat (limited to 'test/baseline/feat-convert-with-directives.test')
-rw-r--r--test/baseline/feat-convert-with-directives.test28
1 files changed, 28 insertions, 0 deletions
diff --git a/test/baseline/feat-convert-with-directives.test b/test/baseline/feat-convert-with-directives.test
new file mode 100644
index 00000000..53adb7a6
--- /dev/null
+++ b/test/baseline/feat-convert-with-directives.test
@@ -0,0 +1,28 @@
+account Expenses:Food
+ payee KFC
+ payee REWE
+
+payee REWE
+ alias REWE SAGT DANKE
+
+# When reading csv file without directives:
+test -f /dev/null convert test/baseline/feat-convert-with-directives.dat
+2012/01/01 * KFC
+ Expenses:Unknown $10
+ Equity:Unknown
+
+2012/01/02 * REWE SAGT DANKE 123454321
+ Expenses:Unknown 10€
+ Equity:Unknown
+end test
+
+# When reading csv file with directives:
+test --account "Assets:Cash" convert test/baseline/feat-convert-with-directives.dat
+2012/01/01 * KFC
+ Expenses:Food $10
+ Assets:Cash
+
+2012/01/02 * REWE
+ Expenses:Food 10€
+ Assets:Cash
+end test