Issue #15449 has been updated by osyo (manga osyo).


Sorry, `Range#===` is called `Range#cover?` in Ruby 2.6.
see: https://bugs.ruby-lang.org/issues/14575

----------------------------------------
Bug #15449: Range#=== is not using cover in Ruby 2.6
https://bugs.ruby-lang.org/issues/15449#change-75830

* Author: ana06 (Ana Maria Martinez Gomez)
* Status: Open
* Priority: Normal
* Assignee: 
* Target version: 
* ruby -v: 2.6.0dev (2018-12-20 trunk 66466)
* Backport: 2.4: UNKNOWN, 2.5: UNKNOWN
----------------------------------------
```
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]
```




-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>