Actions
Bug #15449
closedRange#=== is not using cover in Ruby 2.6
Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
2.6.0dev (2018-12-20 trunk 66466)
Backport:
Description
irb(main):105:0> ('A'..'Z').cover? 'ANA'
=> true
irb(main):106:0> ('A'..'Z') === 'ANA'
=> false
Is this expected? Should ===
use cover according to NEWS in Ruby 2.6?
> ruby -v
ruby 2.6.0dev (2018-12-20 trunk 66466) [x86_64-linux]
Files
Actions
Like0
Like0Like0Like0Like0Like0Like0