[ruby-cvs:49928] knu:r42786 (trunk): Fix and add tests for Numeric#step.

knu at ruby-lang.org knu at ruby-lang.org
Tue Sep 3 07:39:25 JST 2013


knu	2013-09-03 07:39:24 +0900 (Tue, 03 Sep 2013)

  New Revision: 42786

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

  Log:
    Fix and add tests for Numeric#step.
    
    * test/ruby/test_float.rb (TestFloat#test_num2dbl): Allow nil as
      step, as with the keyword argument.
    
    * test/ruby/test_numeric.rb (TestNumeric#test_step): Add tests for
      nil as step or limit.

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


More information about the ruby-cvs mailing list