Skip to content

test(invoice): add property tests for amount invariants#201

Closed
dreamgeneX wants to merge 1 commit into
mainfrom
test/102-invoice-amount-invariant-property-tests
Closed

test(invoice): add property tests for amount invariants#201
dreamgeneX wants to merge 1 commit into
mainfrom
test/102-invoice-amount-invariant-property-tests

Conversation

@dreamgeneX

Copy link
Copy Markdown
Contributor

Adds property-based tests proving amount invariants hold across arbitrary inputs: line item totals, overflow safety, and paid amount ceiling.

Closes #102

Parametric property-style tests verifying: gross always >= amount,
amounts never mutated by mark_paid, IDs are sequential, and values
stored exactly. Covers boundary inputs up to i128::MAX.

Closes #102

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dreamgeneX dreamgeneX closed this Jun 1, 2026
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.

[Testing][Invoice] Add property tests for amount invariants

1 participant