summaryrefslogtreecommitdiff
path: root/test/baseline/opt-check-payees.test
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2012-04-26 16:39:25 -0500
committerJohn Wiegley <johnw@newartisans.com>2012-04-26 16:39:25 -0500
commit64a9b42381c26baf24e58b40f50f0b253e551811 (patch)
tree5447a29dff64c3a8b7be8100a01bcb4a2d73b0bb /test/baseline/opt-check-payees.test
parent7cc550fc22357e2ded194d3e65287c6b3317f5ae (diff)
parentb4407c10c0071365322b2963747bf42a57fd7304 (diff)
downloadfork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.tar.gz
fork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.tar.bz2
fork-ledger-64a9b42381c26baf24e58b40f50f0b253e551811.zip
Merge branch 'release/v3.0.0-20120426'
Diffstat (limited to 'test/baseline/opt-check-payees.test')
-rw-r--r--test/baseline/opt-check-payees.test37
1 files changed, 37 insertions, 0 deletions
diff --git a/test/baseline/opt-check-payees.test b/test/baseline/opt-check-payees.test
new file mode 100644
index 00000000..923729e7
--- /dev/null
+++ b/test/baseline/opt-check-payees.test
@@ -0,0 +1,37 @@
+account Assets:Cash
+account Expenses:Phone
+account Expenses:Rent
+account Expenses:Food
+commodity EUR
+commodity GBP
+payee Phone
+tag food
+
+2012-03-20 Phone
+ Expenses:Phone 20.00 GBP
+ Assets:Cash
+
+2012-03-21 Rent
+ Expenses:Rent 550.00 GBP
+ Assets:Cash
+
+2012-03-22 Food
+ ; :food:
+ Expenses:Food 20.00 EUR
+ Assets:Cash
+
+test bal --explicit --strict --check-payees
+ -20.00 EUR
+ -570.00 GBP Assets:Cash
+ 20.00 EUR
+ 570.00 GBP Expenses
+ 20.00 EUR Food
+ 20.00 GBP Phone
+ 550.00 GBP Rent
+--------------------
+ 0
+__ERROR__
+Warning: "$FILE", line 14: Unknown payee 'Rent'
+Warning: "$FILE", line 18: Unknown payee 'Food'
+end test
+