[ruby-cvs:62866] mrkn:r55702 (trunk): numeric.c, complex.c: Add finite? and infinite? consistent with Float

mrkn at ruby-lang.org mrkn at ruby-lang.org
Sun Jul 17 23:53:00 JST 2016


mrkn	2016-07-17 23:53:00 +0900 (Sun, 17 Jul 2016)

  New Revision: 55702

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

  Log:
    numeric.c, complex.c: Add finite? and infinite? consistent with Float
    
    * numeric.c (num_finite_p, num_infinite_p): Add Numeric#finite? and
      Numeric#infinite?  [Feature #12039] [ruby-core:73618]
    
    * complex.c (rb_complex_finite_p): Add Complex#finite?
    
    * complex.c (rb_complex_infinite_p): Add Complex#infinite?
    
    * test/ruby/test_bignum.rb: Add test for Integer#finite? and
      Integer#infinite?
    
    * test/ruby/test_fixnum.rb: ditto.
    
    * test/ruby/test_rational.rb: Add test for Rational#finite? and
      Rational#infinite?
    
    * test/ruby/test_complex.rb: Add test for Complex#finite? and
      Complex#infinite?

  Modified files:
    trunk/ChangeLog
    trunk/complex.c
    trunk/numeric.c
    trunk/test/ruby/test_bignum.rb
    trunk/test/ruby/test_complex.rb
    trunk/test/ruby/test_fixnum.rb
    trunk/test/ruby/test_rational.rb


More information about the ruby-cvs mailing list