summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authormarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-07 17:36:15 +0000
committermarcandre <marcandre@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-07 17:36:15 +0000
commitf3d2f9e4d13c6f871a5c72ebcadd1e0aeab267f3 (patch)
tree9e68029313b167ed78b2f13f444994a5acbea391 /test
parentceb62c31a1351422c208282a755d6eb3e0073a17 (diff)
* 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.rb4
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