-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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 number(digits: 1) always returns 0 #1712
Conversation
ed13962
to
e968744
Compare
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.
Changes look good to me.
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.
Thanks!
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.
👍
* Fix number(digits: 1) always returns 0 Fixes faker-ruby#1705 * remove unnecessary Base
* Fix number(digits: 1) always returns 0 Fixes faker-ruby#1705 * remove unnecessary Base
Fixes #1705
Note: Fixing
number
with one digit caused thetest_insignificant_zero
to fail. As it seemed that the behavior tested bytest_insignificant_zero
was already covered bytest_number
andtest_decimal
, I removed it to prevent duplication.