-
Notifications
You must be signed in to change notification settings - Fork 23
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
Make createIntInRange
work for full int range
#431
Make createIntInRange
work for full int range
#431
Conversation
In order to avoid `int range overflow` error `startRange` and `endRange` are converted to decimal. Fixes the issue #4744.
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #431 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 1 1
Lines 22 22
Branches 11 11
=========================================
Hits 22 22
☔ View full report in Codecov by Sentry. |
@vil02 The fix looks good, before we accept the solution could you do the following?
Thanks! |
In order to be consistent with the code base, the files were formatted. This change is a result of running the command `bal format`.
Information about solving #4744 was addes to the changelog.
Code was formatted in: 80cfe22. @niveathika thanks for the tip with |
@vil02 Looks good! 👏🏽👏🏽👏🏽 Thanks for the contribution. |
Purpose
Closes ballerina-platform/ballerina-library#4744
Examples
The code like
no longer causes
int range overflow
error.Checklist
Other remarks for reviewers
random:createIntInRange
with an empty range ballerina-library#4892