[ruby-cvs:54783] nobu:r47635 (trunk): test_math.rb: use Float#infinite?

nobu at ruby-lang.org nobu at ruby-lang.org
Fri Sep 19 10:47:10 JST 2014


nobu	2014-09-19 10:47:06 +0900 (Fri, 19 Sep 2014)

  New Revision: 47635

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

  Log:
    test_math.rb: use Float#infinite?
    
    * test/ruby/test_math.rb (TestMath#assert_infinity): Float#finite?
      returns true also for NaN, so use Float#infinite? instead.
      [ruby-core:65117] [Feature #10261]

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_math.rb


More information about the ruby-cvs mailing list