summaryrefslogtreecommitdiff
path: root/test/baseline/dir-commodity.test
diff options
context:
space:
mode:
authorMartin Michlmayr <tbm@cyrius.com>2012-03-25 20:26:18 +0100
committerMartin Michlmayr <tbm@cyrius.com>2012-03-25 20:26:18 +0100
commit86d58584441bf673266f234fc1c77e306f2efeb0 (patch)
tree2bbd157ccd616db0cbd721b6e3da7793eacd662a /test/baseline/dir-commodity.test
parent4d0daf77d7aef535bc206154344a1061b6064ec6 (diff)
downloadfork-ledger-86d58584441bf673266f234fc1c77e306f2efeb0.tar.gz
fork-ledger-86d58584441bf673266f234fc1c77e306f2efeb0.tar.bz2
fork-ledger-86d58584441bf673266f234fc1c77e306f2efeb0.zip
Add more baseline tests.
Diffstat (limited to 'test/baseline/dir-commodity.test')
-rw-r--r--test/baseline/dir-commodity.test21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/baseline/dir-commodity.test b/test/baseline/dir-commodity.test
new file mode 100644
index 00000000..fc925648
--- /dev/null
+++ b/test/baseline/dir-commodity.test
@@ -0,0 +1,21 @@
+account A
+account B
+commodity GBP
+
+2012-03-25 GBP
+ A 10.00 GBP
+ B
+
+2012-03-26 EUR
+ A 20.00 EUR
+ B
+
+test bal --pedantic -> 1
+__ERROR__
+While parsing file "$FILE", line 10:
+While parsing posting:
+ A 20.00 EUR
+ ^^^^^^^^^
+Error: Unknown commodity 'EUR'
+end test
+