-
Notifications
You must be signed in to change notification settings - Fork 490
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Bug 1147: Check balance assertions against the amount AFTER
- Loading branch information
Showing
3 changed files
with
34 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
2000/01/01 Post-transaction balance | ||
A $5.00 = $5.00 | ||
B | ||
|
||
test bal | ||
$5.00 A | ||
$-5.00 B | ||
-------------------- | ||
0 | ||
end test |