Project

General

Profile

Actions

Bug #18748

open

Range#cover? returns true for beginless range of different type

Added by jeremyevans0 (Jeremy Evans) about 1 month ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
[ruby-core:108364]

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

No data to display

Actions

Also available in: Atom PDF