summaryrefslogtreecommitdiff
path: root/test/baseline/cmd-csv.test
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2012-03-23 08:58:33 +0000
committerMartin Michlmayr <tbm@cyrius.com>2012-03-23 08:58:33 +0000
commit5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41 (patch)
treead66deafca1f1b6e774b3a652860f4f8eae2eabf /test/baseline/cmd-csv.test
parent8e6a3ce0d0f838daaad05ee638a8df0d2e7616fa (diff)
downloadfork-ledger-5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41.tar.gz
fork-ledger-5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41.tar.bz2
fork-ledger-5cffbf16e94cffc1b62ef80f6fb4ef8c1356db41.zip
Add more baseline tests
Diffstat (limited to 'test/baseline/cmd-csv.test')
-rw-r--r--test/baseline/cmd-csv.test53
1 files changed, 53 insertions, 0 deletions
diff --git a/test/baseline/cmd-csv.test b/test/baseline/cmd-csv.test
new file mode 100644
index 00000000..110e3d58
--- /dev/null
+++ b/test/baseline/cmd-csv.test
@@ -0,0 +1,53 @@
+
+2012-01-01 * Opening balances
+ Assets:A 10.00
+ Equity:Opening balances -10.00
+
+2012-01-02 * Cleared posting
+ Assets:A -10.00
+ Assets:B 10.00
+
+2012-01-03 Uncleared posting
+ Assets:B -5.00
+ Assets:C 5.00
+
+2012-01-04=2012-01-05 * aux date
+ Assets:A 10.00
+ Liabilities:A -10.00
+
+2012-01-05 * (100) Code
+ Assets:A -10.00
+ Liabilities:A 10.00
+
+2012-01-06 * (100) Specify commodity
+ Assets:A $-10.00
+ Liabilities:A $10.00
+
+2012-01-07 * (100) Specify commodity
+ Assets:A -10.00 EUR
+ Liabilities:A 10.00 EUR
+
+2012-01-08 * (100) With note
+ ;This is an xact note
+ Assets:A -10.00 EUR
+ Liabilities:A 10.00 EUR
+
+test csv
+"2012/01/01","","Opening balances","Assets:A","","10","*",""
+"2012/01/01","","Opening balances","Equity:Opening balances","","-10","*",""
+"2012/01/02","","Cleared posting","Assets:A","","-10","*",""
+"2012/01/02","","Cleared posting","Assets:B","","10","*",""
+"2012/01/03","","Uncleared posting","Assets:B","","-5","",""
+"2012/01/03","","Uncleared posting","Assets:C","","5","",""
+"2012/01/04","","aux date","Assets:A","","10","*",""
+"2012/01/04","","aux date","Liabilities:A","","-10","*",""
+"2012/01/05","100","Code","Assets:A","","-10","*",""
+"2012/01/05","100","Code","Liabilities:A","","10","*",""
+"2012/01/06","100","Specify commodity","Assets:A","$","-10","*",""
+"2012/01/06","100","Specify commodity","Liabilities:A","$","10","*",""
+"2012/01/07","100","Specify commodity","Assets:A","EUR","-10","*",""
+"2012/01/07","100","Specify commodity","Liabilities:A","EUR","10","*",""
+"2012/01/08","100","With note","Assets:A","EUR","-10","*","This is an xact note"
+"2012/01/08","100","With note","Liabilities:A","EUR","10","*","This is an xact note"
+end test
+