diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-03-21 22:53:45 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-04-14 10:22:09 +0900 |
commit | fb17c833f542222afdf482924877d43aa577782d (patch) | |
tree | e909919fb7f9d401f5a8f292d3fdc0a93ae2cedc /test | |
parent | 1a149aab776aa6741628eb35482eff1ded197fd2 (diff) | |
download | ruby-fb17c833f542222afdf482924877d43aa577782d.tar.gz |
[Bug #19533] Fix infinite range inclusion with numeric value
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_range.rb | 2 |
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 |