summaryrefslogtreecommitdiff
path: root/test/regress/1147-a.test
diff options
context:
space:
mode:
authorMitchell Kember <mk12360@gmail.com>2016-03-22 21:57:56 -0700
committerMitchell Kember <mk12360@gmail.com>2016-03-22 23:09:27 -0700
commitd082b6485f371b9eae01789b245a7944535a69d2 (patch)
treeefb8982deec06497e302cd7c1849454d3c180a15 /test/regress/1147-a.test
parent16c2b8d58d98c41a8b9093116dfa34d5da71b44a (diff)
downloadfork-ledger-d082b6485f371b9eae01789b245a7944535a69d2.tar.gz
fork-ledger-d082b6485f371b9eae01789b245a7944535a69d2.tar.bz2
fork-ledger-d082b6485f371b9eae01789b245a7944535a69d2.zip
Fix Bug 1147: Check balance assertions against the amount AFTER
Diffstat (limited to 'test/regress/1147-a.test')
-rw-r--r--test/regress/1147-a.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/regress/1147-a.test b/test/regress/1147-a.test
new file mode 100644
index 00000000..e999c312
--- /dev/null
+++ b/test/regress/1147-a.test
@@ -0,0 +1,12 @@
+2000/01/01 Pre-transaction balance
+ A $5.00 = $0.00
+ B
+
+test bal -> 1
+__ERROR__
+While parsing file "$FILE", line 2:
+While parsing posting:
+ A $5.00 = $0.00
+ ^^^^^
+Error: Balance assertion off by $-5.00 (expected to see $5.00)
+end test