diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-13 22:50:43 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-14 10:22:09 +0900 |
commit | 60f22ebf86248388b41b4ec751d16700f2b4b621 (patch) | |
tree | c7b6566c9395f3b321f8e9883c0ab6b534d8e345 /spec | |
parent | fb17c833f542222afdf482924877d43aa577782d (diff) | |
download | ruby-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.rb | 6 |
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 |