Decrease counts of tests which spend so long time.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25651 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2009-11-04 19:01:41 +00:00
parent 88175d1779
commit c5b4aedab6
2 changed files with 8 additions and 4 deletions

View file

@ -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