From b0616346f8098d0f2063c48ee61c09eb2ddc851e Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 3 May 2015 01:02:15 +0000 Subject: range.c: covered for linear objects * range.c (linear_object_p, range_include): test if covered for linear objects. [ruby-core:69052] [Bug #11113] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_range.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_range.rb b/test/ruby/test_range.rb index dc07a59fcd..791764b355 100644 --- a/test/ruby/test_range.rb +++ b/test/ruby/test_range.rb @@ -283,6 +283,14 @@ class TestRange < Test::Unit::TestCase assert_not_operator(0..10, :===, 11) end + def test_eqq_time + bug11113 = '[ruby-core:69052] [Bug #11113]' + t = Time.now + assert_nothing_raised(TypeError, bug11113) { + assert_operator(t..(t+10), :===, t+5) + } + end + def test_include assert_include("a".."z", "c") assert_not_include("a".."z", "5") -- cgit v1.2.3