summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_array.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_array.rb')
-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 25bf5955e..079719044 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -1612,7 +1612,7 @@ class TestArray < Test::Unit::TestCase
srand(0)
a = (1..18).to_a
(0..20).each do |n|
- 10000.times do
+ 100.times do
b = a.sample(n)
assert_equal([n, 18].min, b.uniq.size)
assert_equal(a, (a | b).sort)
@@ -1620,7 +1620,7 @@ class TestArray < Test::Unit::TestCase
end
h = Hash.new(0)
- 10000.times do
+ 1000.times do
a.sample(n).each {|x| h[x] += 1 }
end
assert_operator(h.values.min * 2, :>=, h.values.max) if n != 0