From: <ki...@us...> - 2014-06-07 00:12:58
|
Revision: 2525 http://sourceforge.net/p/rubycocoa/svn/2525 Author: kimuraw Date: 2014-06-07 00:12:45 +0000 (Sat, 07 Jun 2014) Log Message: ----------- Fix test error test_assign_range() and test_assign_start_and_length() on ruby-2.x Array#[range]=nil does not delete element(s) on ruby-1.9 or later. (see ruby/doc/ChangeLog-1.9.3) # ruby-1.8 >> ary = [1,2,3,4,5] => [1, 2, 3, 4, 5] >> ary[2..3] = nil => nil >> ary => [1, 2, 5] # ruby-2.1 >> ary = [1,2,3,4,5] => [1, 2, 3, 4, 5] >> ary[2..3] = nil => nil >> ary => [1, 2, nil, 5] Modified Paths: -------------- trunk/src/ChangeLog trunk/src/tests/tc_nsarray.rb This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |