[ruby-cvs:71732] tarui:r64640 (trunk): range.c: Range#cover? accepts Range object. [Feature #14473]

tarui at ruby-lang.org tarui at ruby-lang.org
Thu Sep 6 04:06:09 JST 2018


tarui	2018-09-06 04:06:08 +0900 (Thu, 06 Sep 2018)

  New Revision: 64640

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64640

  Log:
    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!

  Modified files:
    trunk/NEWS
    trunk/range.c
    trunk/test/ruby/test_range.rb


More information about the ruby-cvs mailing list