Skip to content

Refactored equalWithinVariance to use it with any custom variance#255

Open
UlyanaAndrukhiv wants to merge 2 commits intoUlianaAndrukhiv/211-update-fee-ratesfrom
UlianaAndrukhiv/equalWithinVariance-refactoring
Open

Refactored equalWithinVariance to use it with any custom variance#255
UlyanaAndrukhiv wants to merge 2 commits intoUlianaAndrukhiv/211-update-fee-ratesfrom
UlianaAndrukhiv/equalWithinVariance-refactoring

Conversation

@UlyanaAndrukhiv
Copy link
Contributor

Context

This PR refactors the equalWithinVariance test helper to support any custom variance and improves how variance comparisons are used throughout the code. It decouples the function from hard‑coded assumptions, making tests and logic that rely on approximate equality clearer and more flexible.

Tests were updated to use the new custom variance.

@UlyanaAndrukhiv UlyanaAndrukhiv marked this pull request as ready for review March 10, 2026 14:21
@UlyanaAndrukhiv UlyanaAndrukhiv requested a review from a team as a code owner March 10, 2026 14:21
@UlyanaAndrukhiv UlyanaAndrukhiv requested review from a team and zhangchiqing March 10, 2026 15:53
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.

2 participants