mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 09:04:05 +02:00
* 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:
parent
ceb62c31a1
commit
f3d2f9e4d1
3 changed files with 13 additions and 25 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue