summaryrefslogtreecommitdiff
path: root/test/baseline/feat-balance_assert-off.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/baseline/feat-balance_assert-off.test')
-rw-r--r--test/baseline/feat-balance_assert-off.test18
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
+