diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-03 01:02:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-05-03 01:02:15 +0000 |
commit | b0616346f8098d0f2063c48ee61c09eb2ddc851e (patch) | |
tree | adcbfe02df54f0815c1b296d174ba9ebf1b743df /test/ruby | |
parent | 06cb32001ff6825d733ed00029f3f1f68d672faf (diff) | |
download | ruby-b0616346f8098d0f2063c48ee61c09eb2ddc851e.tar.gz |
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
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_range.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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") |