From 60fd2b234a4cf95223f58a87f413d37ff2ed5fc7 Mon Sep 17 00:00:00 2001 From: Martin Michlmayr Date: Sun, 18 May 2014 09:34:55 -0400 Subject: Add test case for balance assertion that's off --- test/baseline/feat-balance_assert-off.test | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 test/baseline/feat-balance_assert-off.test diff --git a/test/baseline/feat-balance_assert-off.test b/test/baseline/feat-balance_assert-off.test new file mode 100644 index 00000000..fed24d4a --- /dev/null +++ b/test/baseline/feat-balance_assert-off.test @@ -0,0 +1,18 @@ + +2014-05-01 * Opening balance + Assets:Cash $100 + Equity:Opening balance + +2014-05-10 * Spend money + Expenses:Foo $10 + Assets:Cash -$10 = $80 + +test bal -> 1 +__ERROR__ +While parsing file "$FILE", line 8: +While parsing posting: + Assets:Cash -$10 = $80 + ^^^ +Error: Balance assertion off by $-10 (expected to see $100) +end test + -- cgit v1.2.3