Closed peterzhu2118 closed 4 months ago
Note that cases where self
has fewer digits than precision
is omitted, due to issues that is fixed in https://github.com/ruby/ruby/pull/11257.
Note that cases where
self
has fewer digits thanprecision
is omitted, due to issues that is fixed in ruby/ruby#11257.
Could you include those too, but under ruby_bug "#20654", ""..."3.4" do
?
BTW it's fine if you change specs directly in the ruby/ruby PR for convenience, that ensures the specs are run with the fix and work on ruby-head.
BTW it's fine if you change specs directly in the ruby/ruby PR for convenience, that ensures the specs are run with the fix and work on ruby-head.
Yep, I'll add the specs for the new behaviour in https://github.com/ruby/ruby/pull/11257 once this PR is merged.
Thanks for the new specs!
There is poor spec coverage of when precision is passed into Integer#floor, Float#floor, Integer#ceil, Float#ceil. This PR adds some specs for when precision is passed in.