From 60f22ebf86248388b41b4ec751d16700f2b4b621 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 13 Apr 2023 22:50:43 +0900 Subject: [PATCH] [Bug #19533] Add spec of infinite range inclusion --- spec/ruby/core/range/case_compare_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/ruby/core/range/case_compare_spec.rb b/spec/ruby/core/range/case_compare_spec.rb index 4a3faa3163dc5f..65878aaabe72e3 100644 --- a/spec/ruby/core/range/case_compare_spec.rb +++ b/spec/ruby/core/range/case_compare_spec.rb @@ -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