Skip to content

Add regression test for issue #1603#2990

Merged
jwiegley merged 1 commit intomainfrom
johnw/fix-1603
Mar 25, 2026
Merged

Add regression test for issue #1603#2990
jwiegley merged 1 commit intomainfrom
johnw/fix-1603

Conversation

@jwiegley
Copy link
Copy Markdown
Member

Summary

  • Balance assertions with fixed (lot-priced) commodities like = 0 STOCK {$1} previously failed with "Subtracting amounts with different commodities"
  • This was fixed in a prior commit; adds a regression test to prevent regressions
  • Test verifies both balance --empty and register output with lot-priced balance assertions

Test plan

  • New regression test test/regress/1603.test passes (2 test blocks)
  • Full test suite passes (4097/4097 tests)
  • No C++ code changes, only a new test file

Fixes #1603

🤖 Generated with Claude Code

Balance assertions with fixed (lot-priced) commodities like
"= 0 STOCK {$1}" previously failed with "Subtracting amounts with
different commodities". This was fixed in a prior commit. Add a
regression test to ensure it stays working.

Closes #1603

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@jwiegley jwiegley added this pull request to the merge queue Mar 25, 2026
Merged via the queue into main with commit a8a281e Mar 25, 2026
12 checks passed
@jwiegley jwiegley deleted the johnw/fix-1603 branch March 25, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Balance assertions broken when combined with fixed commodities (BZ#531)

1 participant