[ruby-cvs:49930] knu:r42788 (trunk): Retain behavior of Numeric#step when nil is given as second argument.

knu at ruby-lang.org knu at ruby-lang.org
Tue Sep 3 07:54:59 JST 2013


knu	2013-09-03 07:54:58 +0900 (Tue, 03 Sep 2013)

  New Revision: 42788

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

  Log:
    Retain behavior of Numeric#step when nil is given as second argument.
    
    * numeric.c (NUM_STEP_SCAN_ARGS): On sencond thought, keep
      Numeral#step backward compatible in that it raises TypeError
      when nil is given as second argument.
    
    * test/ruby/test_float.rb (TestFloat#test_num2dbl): Revert.
    
    * test/ruby/test_numeric.rb (TestNumeric#test_step): Fix test
      cases for the above change.

  Modified files:
    trunk/ChangeLog
    trunk/numeric.c
    trunk/test/ruby/test_float.rb
    trunk/test/ruby/test_numeric.rb


More information about the ruby-cvs mailing list