Actions
Bug #18748
closedRange#cover? returns true for beginless range of different type
Description
While adding documentation to address #18155, I found a bug:
(2..).cover?("2"..) # => false
(..2).cover?(.."2") # => true
I've submitted a pull request for fix this: https://github.com/ruby/ruby/pull/5831
Actions
Like0
Like0Like0