diff options
author | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-05 19:06:08 +0000 |
---|---|---|
committer | tarui <tarui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-05 19:06:08 +0000 |
commit | 9ca738927293df1c7a2a1ed7e2d6cf89527b5438 (patch) | |
tree | ca0329dafd191b1b315e7f3e5f90926cfa916487 /test/test_win32api.rb | |
parent | 19dec2a19c25f4cfb2511c313fde969436437bd0 (diff) |
range.c: Range#cover? accepts Range object. [Feature #14473]
* range.c (range_cover): add code for range argument.
If the argument is a Range, check it is or is not
covered by the reciver. If it can be treated as a
sequence, this method treats it that way.
* test/ruby/test_range.rb (class TestRange): add tests
for this feature.
This patch is written by Owen Stephens. thank you!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_win32api.rb')
0 files changed, 0 insertions, 0 deletions