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

Add Method#=== that invokes #call #5079

Merged
merged 1 commit into from Mar 20, 2018

Conversation

Projects
None yet
3 participants
@nomadium
Contributor

nomadium commented Mar 4, 2018

Hi folks,

This is another feature targeting Ruby 2.5 [1]: Add Method#=== that invokes #call (feature #14142).

The associated MRI test to the feature work as expected:

  def test_eqq
    assert_operator(0.method(:<), :===, 5)
    assert_not_operator(0.method(:<), :===, -5)
  end
miguel@alice:~/jruby$ PATH=$PWD/bin:$PATH jruby test/mri/runner.rb -v --color=never --tty=no --excludes=test/mri/excludes -q -n test_eqq -- ruby/test_method.rb
Run options: -v --color=never --tty=no --excludes=test/mri/excludes -q -n test_eqq --

# Running tests:

[1/1] TestMethod#test_eqq = 0.02 s
Finished tests in 0.260273s, 3.8421 tests/s, 15.3685 assertions/s.
1 tests, 4 assertions, 0 failures, 0 errors, 0 skips

ruby -v: jruby 9.3.0.0-SNAPSHOT (2.5.0) 2018-03-04 96b264b Java HotSpot(TM) 64-Bit Server VM 25.102-b14 on 1.8.0_102-b14 +jit [darwin-x86_64]

Thanks for your review and feedback.

  1. #4876
Add Method#=== that invokes #call
For more information, please see feature #14142.

@nomadium nomadium referenced this pull request Mar 20, 2018

Closed

Ruby 2.5 Support #4876

64 of 75 tasks complete

@kares kares added this to the JRuby 9.3.0.0 milestone Mar 20, 2018

@kares kares merged commit 804fe00 into jruby:ruby-2.5 Mar 20, 2018

1 check failed

continuous-integration/travis-ci/pr The Travis CI build could not complete due to an error
Details

@nomadium nomadium deleted the nomadium:add-method-eqq branch Mar 20, 2018

@enebo enebo modified the milestones: JRuby 9.3.0.0, JRuby 9.2.0.0 Apr 23, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment