-
Notifications
You must be signed in to change notification settings - Fork 253
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
fix(NODE-3640): Fix Int32 constructor to coerce its argument to int32 #466
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a couple small suggestion and need to remove the stray .only; otherwise great job, thank you for improving the wording on the other test cases, too!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good with @dariakp's comments addressed :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you!
Int32 constructor truncates its argument immediately to int32 so that out of bound values are dealt with properly. Tests for the max/min bounds as well as out of bound positive/negative values are added, existing tests that did not take into account this new functionality were updated.