Skip to content

Commit

Permalink
[Bug #19533] Add spec of infinite range inclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Apr 14, 2023
1 parent fb17c83 commit 60f22eb
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/ruby/core/range/case_compare_spec.rb
Expand Up @@ -10,4 +10,10 @@

it_behaves_like :range_cover_and_include, :===
it_behaves_like :range_cover, :===

ruby_bug "#19533", "3.2"..."3.3" do
it "returns true on any value if begin and end are both nil" do
(nil..nil).should === 1
end
end
end

0 comments on commit 60f22eb

Please sign in to comment.