[ruby-cvs:57670] nobu:r50522 (trunk): numeric.c: Numeric#positive? and Numeric#negative?

nobu at ruby-lang.org nobu at ruby-lang.org
Sun May 17 15:01:48 JST 2015


nobu	2015-05-17 15:01:47 +0900 (Sun, 17 May 2015)

  New Revision: 50522

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

  Log:
    numeric.c: Numeric#positive? and Numeric#negative?
    
    * numeric.c (num_positive_p, num_negative_p): add methods
      Numeric#positive? and Numeric#negative?.
      [ruby-core:69173] [Feature #11151]
    * numeric.c (flo_positive_p, flo_negative_p): specialiazed
      functions for Float.
    * complex.c (Init_Complex): Complex do not have positive? and
      negative? methods

  Modified files:
    trunk/ChangeLog
    trunk/NEWS
    trunk/complex.c
    trunk/numeric.c
    trunk/test/ruby/test_fixnum.rb
    trunk/test/ruby/test_float.rb
    trunk/test/ruby/test_numeric.rb
    trunk/test/ruby/test_rational.rb


More information about the ruby-cvs mailing list