[Bug #19533] Add spec of infinite range inclusion

This commit is contained in:
Nobuyoshi Nakada 2023-04-13 22:50:43 +09:00
parent fb17c833f5
commit 60f22ebf86
Notes: git 2023-04-14 01:22:31 +00:00

View File

@ -10,4 +10,10 @@ describe "Range#===" do
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