Skip to content

refactor[stdlib]: refactor math.sqrt implementation#4575

Merged
charles-cooper merged 2 commits intovyperlang:masterfrom
charles-cooper:refactor/sqrt-rewrite
Apr 29, 2025
Merged

refactor[stdlib]: refactor math.sqrt implementation#4575
charles-cooper merged 2 commits intovyperlang:masterfrom
charles-cooper:refactor/sqrt-rewrite

Conversation

@charles-cooper
Copy link
Copy Markdown
Member

@charles-cooper charles-cooper commented Apr 12, 2025

What I did

How I did it

How to verify it

Commit message

rewrite `math.sqrt()` for cleanliness -- use early returns and express
the invariants more clearly.

Description for the changelog

Cute Animal Picture

Put a link to a cute animal picture inside the parenthesis-->

@charles-cooper charles-cooper marked this pull request as draft April 12, 2025 12:56
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 12, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.49%. Comparing base (fc8435d) to head (ae5ae87).
⚠️ Report is 57 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4575   +/-   ##
=======================================
  Coverage   92.49%   92.49%           
=======================================
  Files         128      128           
  Lines       18506    18506           
  Branches     3208     3208           
=======================================
  Hits        17118    17118           
  Misses        944      944           
  Partials      444      444           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

rewrite math.sqrt for cleanliness -- use early returns and express the
invariants more clearly.
@charles-cooper charles-cooper force-pushed the refactor/sqrt-rewrite branch from afbb8a4 to cffee28 Compare April 12, 2025 13:22
@charles-cooper charles-cooper marked this pull request as ready for review April 12, 2025 13:22
@charles-cooper charles-cooper enabled auto-merge (squash) April 29, 2025 11:39
@charles-cooper charles-cooper merged commit 3a41220 into vyperlang:master Apr 29, 2025
159 checks passed
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