summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-03-10 21:34:51 -0600
committerJohn Wiegley <johnw@newartisans.com>2012-03-10 21:34:51 -0600
commit860610fdaf94ca5904ea3e0d3d82126de74c7d80 (patch)
treeb2cb1491ec50b2cb1c5ee496005aceecc28dc11d /test
parent1956393a44b981ef722dc1eab0264c4f714a81a6 (diff)
downloadfork-ledger-860610fdaf94ca5904ea3e0d3d82126de74c7d80.tar.gz
fork-ledger-860610fdaf94ca5904ea3e0d3d82126de74c7d80.tar.bz2
fork-ledger-860610fdaf94ca5904ea3e0d3d82126de74c7d80.zip
Added --dc option, for debit/credit style reports
Diffstat (limited to 'test')
-rw-r--r--test/baseline/opt-dc.test16
-rw-r--r--test/baseline/opt-meta-width.test4
-rw-r--r--test/manual/transaction-codes-1.test4
-rw-r--r--test/manual/transaction-notes-1.test4
-rw-r--r--test/manual/transaction-notes-2.test2
-rw-r--r--test/manual/transaction-notes-3.test2
-rw-r--r--test/manual/transaction-status-1.test6
-rw-r--r--test/manual/transaction-status-2.test2
-rw-r--r--test/manual/transaction-status-3.test4
-rw-r--r--test/manual/transaction-status-4.test2
10 files changed, 31 insertions, 15 deletions
diff --git a/test/baseline/opt-dc.test b/test/baseline/opt-dc.test
new file mode 100644
index 00000000..24a564dd
--- /dev/null
+++ b/test/baseline/opt-dc.test
@@ -0,0 +1,16 @@
+2012-03-10 Employer
+ Assets:Cash $100
+ Income:Employer
+
+2012-03-10 KFC
+ Expenses:Food $20
+ Assets:Cash
+
+2012-03-10 KFC - Rebate
+ Assets:Cash
+ Expenses:Food $-5
+
+2012-03-10 KFC - Food & Rebate
+ Expenses:Food $20
+ Expenses:Food $-5
+ Assets:Cash
diff --git a/test/baseline/opt-meta-width.test b/test/baseline/opt-meta-width.test
index ce751e24..893e175b 100644
--- a/test/baseline/opt-meta-width.test
+++ b/test/baseline/opt-meta-width.test
@@ -9,6 +9,6 @@
; :AnotherTag:
test reg --meta Sample --meta-width=15
-Another Value 04-May-27 Credit card com.. Liab:MasterCard $20.00 $20.00
-Value As:Ban:Checking $-20.00 0
+Another Value 04-May-27 Credit card co.. Liabi:MasterCard $20.00 $20.00
+Value As:Bank:Checking $-20.00 0
end test
diff --git a/test/manual/transaction-codes-1.test b/test/manual/transaction-codes-1.test
index 7a05b349..ff68e0ec 100644
--- a/test/manual/transaction-codes-1.test
+++ b/test/manual/transaction-codes-1.test
@@ -15,6 +15,6 @@
Liabilities:Credit Card
test reg --columns=60 food and code xfer
-09-Oct-29 Panera Bread Expenses:Food $4.50 $4.50
-09-Oct-30 Panera Bread Expenses:Food $4.50 $9.00
+09-Oct-29 Panera Bread Expenses:Food $4.50 $4.50
+09-Oct-30 Panera Bread Expenses:Food $4.50 $9.00
end test
diff --git a/test/manual/transaction-notes-1.test b/test/manual/transaction-notes-1.test
index 7c3d7200..05ab3412 100644
--- a/test/manual/transaction-notes-1.test
+++ b/test/manual/transaction-notes-1.test
@@ -17,6 +17,6 @@
Assets:Checking
test reg --columns=60 food and note eat
-09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
-09-Nov-01 Panera Bread Expenses:Food $4.50 $9.00
+09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
+09-Nov-01 Panera Bread Expenses:Food $4.50 $9.00
end test
diff --git a/test/manual/transaction-notes-2.test b/test/manual/transaction-notes-2.test
index 603fcbe1..a29eda6e 100644
--- a/test/manual/transaction-notes-2.test
+++ b/test/manual/transaction-notes-2.test
@@ -17,5 +17,5 @@
Assets:Checking
test reg --columns=60 food and tag eating
-09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
+09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
end test
diff --git a/test/manual/transaction-notes-3.test b/test/manual/transaction-notes-3.test
index 9b05334c..b83322b0 100644
--- a/test/manual/transaction-notes-3.test
+++ b/test/manual/transaction-notes-3.test
@@ -17,5 +17,5 @@
Assets:Checking
test reg --columns=60 food and tag type=dining
-09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
+09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
end test
diff --git a/test/manual/transaction-status-1.test b/test/manual/transaction-status-1.test
index 1f7ad095..8bfdd6d9 100644
--- a/test/manual/transaction-status-1.test
+++ b/test/manual/transaction-status-1.test
@@ -11,7 +11,7 @@
Assets
test reg --columns=60 food
-09-Oct-31 Panera Bread Expenses:Food $4.50 $4.50
-09-Nov-01 Panera Bread Expenses:Food $4.50 $9.00
-09-Nov-02 Panera Bread Expenses:Food $4.50 $13.50
+09-Oct-31 Panera Bread Expenses:Food $4.50 $4.50
+09-Nov-01 Panera Bread Expenses:Food $4.50 $9.00
+09-Nov-02 Panera Bread Expenses:Food $4.50 $13.50
end test
diff --git a/test/manual/transaction-status-2.test b/test/manual/transaction-status-2.test
index 6c6d4b8c..94c42a65 100644
--- a/test/manual/transaction-status-2.test
+++ b/test/manual/transaction-status-2.test
@@ -11,5 +11,5 @@
Assets
test reg --columns=60 food --cleared
-09-Oct-31 Panera Bread Expenses:Food $4.50 $4.50
+09-Oct-31 Panera Bread Expenses:Food $4.50 $4.50
end test
diff --git a/test/manual/transaction-status-3.test b/test/manual/transaction-status-3.test
index f50ea23c..f11cd0f7 100644
--- a/test/manual/transaction-status-3.test
+++ b/test/manual/transaction-status-3.test
@@ -11,6 +11,6 @@
Assets
test reg --columns=60 food --uncleared
-09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
-09-Nov-02 Panera Bread Expenses:Food $4.50 $9.00
+09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
+09-Nov-02 Panera Bread Expenses:Food $4.50 $9.00
end test
diff --git a/test/manual/transaction-status-4.test b/test/manual/transaction-status-4.test
index 2ae03c3e..c6f0419b 100644
--- a/test/manual/transaction-status-4.test
+++ b/test/manual/transaction-status-4.test
@@ -11,5 +11,5 @@
Assets
test reg --columns=60 food --pending
-09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
+09-Nov-01 Panera Bread Expenses:Food $4.50 $4.50
end test