summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-13 22:50:43 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-14 10:22:09 +0900
commit60f22ebf86248388b41b4ec751d16700f2b4b621 (patch)
treec7b6566c9395f3b321f8e9883c0ab6b534d8e345 /spec
parentfb17c833f542222afdf482924877d43aa577782d (diff)
downloadruby-60f22ebf86248388b41b4ec751d16700f2b4b621.tar.gz
[Bug #19533] Add spec of infinite range inclusion
Diffstat (limited to 'spec')
-rw-r--r--spec/ruby/core/range/case_compare_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/ruby/core/range/case_compare_spec.rb b/spec/ruby/core/range/case_compare_spec.rb
index 4a3faa3163..65878aaabe 100644
--- a/spec/ruby/core/range/case_compare_spec.rb
+++ b/spec/ruby/core/range/case_compare_spec.rb
@@ -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