Project

General

Profile

« Previous | Next » 

Revision 94468b4e

Added by mrkn (Kenta Murata) almost 8 years ago

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?

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55702 b2dd03c8-39d4-4d8f-98ff-823fe69b080e