summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-03-21 22:53:45 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-14 10:22:09 +0900
commitfb17c833f542222afdf482924877d43aa577782d (patch)
treee909919fb7f9d401f5a8f292d3fdc0a93ae2cedc /test
parent1a149aab776aa6741628eb35482eff1ded197fd2 (diff)
downloadruby-fb17c833f542222afdf482924877d43aa577782d.tar.gz
[Bug #19533] Fix infinite range inclusion with numeric value
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_range.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb
index 0a131644e5..0a68824f11 100644
--- a/test/ruby/test_range.rb
+++ b/test/ruby/test_range.rb
@@ -579,6 +579,8 @@ class TestRange < Test::Unit::TestCase
assert_not_operator(0..10, :===, 11)
assert_operator(5..nil, :===, 11)
assert_not_operator(5..nil, :===, 0)
+ assert_operator(nil..10, :===, 0)
+ assert_operator(nil..nil, :===, 0)
end
def test_eqq_string