Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

round related method support generics #195

Merged
merged 1 commit into from
Mar 1, 2024

Conversation

cannian1
Copy link
Collaborator

@cannian1 cannian1 commented Mar 1, 2024

The range of supported types refers to Round[T SignedNumber | UnsignedNumber](val T) T

Regarding the TruncRound method, it fails the original test when x is the literal 0, which is a refactoring that breaks compatibility. However, I believe few people would do this.

Personally, I think it makes more intuitive sense for the parameter and return types to be consistent, while the semantics of the original function names are preserved for other functions.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.94%. Comparing base (81d13c2) to head (46dce57).

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##               rc     #195      +/-   ##
==========================================
+ Coverage   79.90%   79.94%   +0.04%     
==========================================
  Files          65       65              
  Lines        7484     7484              
==========================================
+ Hits         5980     5983       +3     
+ Misses       1136     1135       -1     
+ Partials      368      366       -2     

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

@duke-git duke-git merged commit c02c4f8 into duke-git:rc Mar 1, 2024
3 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.

3 participants