diff options
author | Martin Michlmayr <tbm@cyrius.com> | 2014-05-18 09:34:55 -0400 |
---|---|---|
committer | Martin Michlmayr <tbm@cyrius.com> | 2014-05-18 09:34:55 -0400 |
commit | 60fd2b234a4cf95223f58a87f413d37ff2ed5fc7 (patch) | |
tree | 9faeafed956d96b585dc0c0891103baaa03cde1c /test/baseline/feat-balance_assert-off.test | |
parent | 7de5255aad62e06fd7c86d86360808960fe8fc58 (diff) | |
download | fork-ledger-60fd2b234a4cf95223f58a87f413d37ff2ed5fc7.tar.gz fork-ledger-60fd2b234a4cf95223f58a87f413d37ff2ed5fc7.tar.bz2 fork-ledger-60fd2b234a4cf95223f58a87f413d37ff2ed5fc7.zip |
Add test case for balance assertion that's off
Diffstat (limited to 'test/baseline/feat-balance_assert-off.test')
-rw-r--r-- | test/baseline/feat-balance_assert-off.test | 18 |
1 files changed, 18 insertions, 0 deletions
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 + |