[ruby-cvs:61325] mrkn:r54164 (trunk): * bignum.c (Bignum#even?, Bignum#odd?): remove definitions

mrkn at ruby-lang.org mrkn at ruby-lang.org
Fri Mar 18 02:11:42 JST 2016


mrkn	2016-03-18 02:11:42 +0900 (Fri, 18 Mar 2016)

  New Revision: 54164

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

  Log:
    * bignum.c (Bignum#even?, Bignum#odd?): remove definitions
      because they are unified with Integer#even? and Integer#odd?.
    
    * numeric.c (Fixnum#zero?, Fixnum#even?, Fixnum#odd?): remove
      definitions because they are unified with Numeric#zero?,
      Integer#even?, and Integer#odd?.
    
    * numeric.c (num_zero_p, int_even_p, int_odd_p): treat Fixnum and
      Bignum values directly.
    
    * test/ruby/test_integer.rb (test_odd_p_even_p): remove meaningless
      test case.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
    trunk/numeric.c
    trunk/test/ruby/test_integer.rb


More information about the ruby-cvs mailing list