diff options
author | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-07 17:36:15 +0000 |
---|---|---|
committer | marcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-07 17:36:15 +0000 |
commit | f3d2f9e4d13c6f871a5c72ebcadd1e0aeab267f3 (patch) | |
tree | 9e68029313b167ed78b2f13f444994a5acbea391 /test | |
parent | ceb62c31a1351422c208282a755d6eb3e0073a17 (diff) | |
download | ruby-f3d2f9e4d13c6f871a5c72ebcadd1e0aeab267f3.tar.gz |
* 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
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_array.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 6fc7fec48d..b2a42d5865 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -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 |