From: hanmac@... Date: 2018-12-21T13:55:56+00:00 Subject: [ruby-core:90664] [Ruby trunk Bug#15449] Range#=== is not using cover in Ruby 2.6 Issue #15449 has been updated by Hanmac (Hans Mackowiak). That isn't new, that is since 1.9 as #cover? was added ---------------------------------------- Bug #15449: Range#=== is not using cover in Ruby 2.6 https://bugs.ruby-lang.org/issues/15449#change-75829 * 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: