* array.c (rb_ary_permutation): Remove limitation for lengthy permutations

[ruby-core:29240]

* test/ruby/test_array.rb: ditto

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27252 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
marcandre 2010-04-07 17:36:15 +00:00
parent ceb62c31a1
commit f3d2f9e4d1
3 changed files with 13 additions and 25 deletions

View file

@ -1842,8 +1842,8 @@ class TestArray < Test::Unit::TestCase
end
def test_combination2
assert_raise(RangeError) do
(0..100).to_a.combination(50) {}
assert_nothing_raised do
(0..100).to_a.combination(50) { break }
end
end