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 test coerce2 #5006

merged 4 commits into from Jan 24, 2018


None yet
2 participants

yui-knk commented Jan 24, 2018

No description provided.

yui-knk added some commits Jan 24, 2018

Define `Numeric#%`
Currently `Numeric#%` is defined in the same way
as `Numeric#modulo`.

Remove `Rational#modulo` and `Rational#%`
Currently these methods are not defined on `Rational`.
Remove `Rational#div`
Currently this method is not defined on `Rational`.
Add `#test_coerce2` to test targets
Now `test_coerce2` does not fail.

@enebo enebo added this to the JRuby milestone Jan 24, 2018

@enebo enebo added the core label Jan 24, 2018


This comment has been minimized.


enebo commented Jan 24, 2018

@yui-knk just waiting for test:mri to finish and this looks good. Weirded out that '.div' is no longer there but I see it is not in Ruby docs for 2.2? I don't know the history of that merthod though.


This comment has been minimized.


yui-knk commented Jan 24, 2018

Maybe ruby/ruby@d82ed7e this commit removed Rational#div and this commit was included Ruby 1.9.2, so I think Ruby docs for 2.2 should not contain that method.
I can not read why this method was removed by the commit message....


This comment has been minimized.


enebo commented Jan 24, 2018

@yui-knk yeah it is strange to see Ruby API shrink :)

@enebo enebo merged commit 6b375fd into jruby:jruby-9.1 Jan 24, 2018

1 check was pending

continuous-integration/travis-ci/pr The Travis CI build is in progress

@yui-knk yui-knk deleted the yui-knk:fix_test_coerce2 branch Jan 24, 2018

kares added a commit that referenced this pull request Jan 31, 2018

Merge pull request #5022 from yui-knk/fix_test_coerce2_master
Fix test coerce2 for master branch

since merge of #5006 wasn't handled properly due changes in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment