summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_range.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb
index 699e4459be..546b1ad8ca 100644
--- a/test/ruby/test_range.rb
+++ b/test/ruby/test_range.rb
@@ -528,6 +528,14 @@ class TestRange < Test::Unit::TestCase
assert_not_operator(5..nil, :===, 0)
end
+ def test_eqq_string
+ assert_operator('A'..'Z', :===, 'ANA')
+ assert_not_operator('A'..'Z', :===, 'ana')
+ assert_operator('A'.., :===, 'ANA')
+ assert_operator(..'Z', :===, 'ANA')
+ assert_operator(nil..nil, :===, 'ANA')
+ end
+
def test_eqq_time
bug11113 = '[ruby-core:69052] [Bug #11113]'
t = Time.now