Skip to content

test(math): property-based tests for calc_fee, calc_payout, median, m… - #154

Merged
dami-005 merged 1 commit into
Zenith-options:mainfrom
Helix-xi:feat/math-property-tests
Sep 30, 2026
Merged

dami-005 merged 1 commit into
Zenith-options:mainfrom
Helix-xi:feat/math-property-tests

Conversation

@Helix-xi

Copy link
Copy Markdown

Closes #108
Closes #109
Closes #110
Closes #111

…ul_div and MAD aggregation

Add proptest suites (10,000 cases per property) covering bounds,
monotonicity, symmetry, linearity and overflow behaviour, plus the list
of properties in the README testing section.

Harden SafeMathRounding::mul_div_{floor,ceil} against i128::MIN / -1 and
OutlierFilter::compute_robust_price against overflow on extreme inputs,
both found while writing the overflow properties.
@drips-wave

drips-wave Bot commented Sep 29, 2026

Copy link
Copy Markdown

@Helix-xi Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@dami-005
dami-005 merged commit 80081e9 into Zenith-options:main Sep 30, 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

2 participants