Project

General

Profile

Actions

Bug #15449

closed

Range#=== is not using cover in Ruby 2.6

Added by ana06 (Ana Maria Martinez Gomez) almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
2.6.0dev (2018-12-20 trunk 66466)
[ruby-core:90660]

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

range-case-cover-string.patch (3.69 KB) range-case-cover-string.patch jeremyevans0 (Jeremy Evans), 07/29/2019 11:32 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0