Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: 90534e1a03784180f86d9f103024e746872a543d https://github.com/MacRuby/MacRuby/commit/90534e1a03784180f86d9f103024e74687... Author: Watson <watson1978@gmail.com> Date: 2011-07-25 (Mon, 25 Jul 2011) Changed paths: M spec/frozen/tags/macruby/core/string/split_tags.txt M string.c Log Message: ----------- String#split(nil, limit) will split into a number specified by the limit. Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions str = " a b c " assert_equal(["a","b", "c"], str.split(nil, 0)) assert_equal([" a b c "], str.split(nil, 1)) assert_equal(["a", "b c "], str.split(nil, 2)) assert_equal(["a", "b", "c "], str.split(nil, 3)) puts :ok }}} Commit: 4664bf800fbafe80db10a40fce5c5c5ba9e467d3 https://github.com/MacRuby/MacRuby/commit/4664bf800fbafe80db10a40fce5c5c5ba9... Author: Watson <watson1978@gmail.com> Date: 2011-07-25 (Mon, 25 Jul 2011) Changed paths: M string.c Log Message: ----------- String#split(nil, limit) should strip the space even if space is continuous Test Script: {{{ require 'test/unit/assertions.rb' include Test::Unit::Assertions str = " a b c " assert_equal(["a", "b", "c "], str.split(nil, 3)) assert_equal(["a", "b", "c"], str.split(nil, 0)) puts :ok }}} Compare: https://github.com/MacRuby/MacRuby/compare/4fdd2bf...4664bf8