From 86d58584441bf673266f234fc1c77e306f2efeb0 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Sun, 25 Mar 2012 20:26:18 +0100 Subject: Add more baseline tests. --- test/baseline/dir-commodity.test | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 test/baseline/dir-commodity.test (limited to 'test/baseline/dir-commodity.test') 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 + -- cgit v1.2.3