From d082b6485f371b9eae01789b245a7944535a69d2 Mon Sep 17 00:00:00 2001 From: Mitchell Kember Date: Tue, 22 Mar 2016 21:57:56 -0700 Subject: Fix Bug 1147: Check balance assertions against the amount AFTER --- test/regress/1147-a.test | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test/regress/1147-a.test (limited to 'test/regress/1147-a.test') 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 -- cgit v1.2.3