summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
authorNARUSE, Yui <nurse@users.noreply.github.com>2024-03-22 10:33:40 +0900
committerGitHub <noreply@github.com>2024-03-22 01:33:40 +0000
commit6d6818883b8f613fe9b6c72ac7eb9b313bba097b (patch)
treeb736dd325ffe1eddb32119810fcfa9ec2c0229db /test/ruby
parenta24802e8fd7e05077256605885c82ffd8221bc94 (diff)
merge revision(s) b176315827d1082f43628013a7d89fda02724d33: [Backport #20324] (#10329)
[Bug #20324] Uncomparable ranges are not overlapping
Diffstat (limited to 'test/ruby')
-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 fe14bb9b3b..2aa69dc6a4 100644
--- a/test/ruby/test_range.rb
+++ b/test/ruby/test_range.rb
@@ -1265,6 +1265,8 @@ class TestRange < Test::Unit::TestCase
assert_operator(0.., :overlap?, 1..)
assert_not_operator((1..3), :overlap?, ('a'..'d'))
+ assert_not_operator((1..), :overlap?, ('a'..))
+ assert_not_operator((..1), :overlap?, (..'a'))
assert_raise(TypeError) { (0..).overlap?(1) }
assert_raise(TypeError) { (0..).overlap?(nil) }