summaryrefslogtreecommitdiff
path: root/test/baseline/feat-convert-with-directives.test
diff options
context:
space:
mode:
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