1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_array.rb: fix test for r39466

* test/ruby/test_array.rb (test_sample_random): remove adjustment for
  the bug fixed by r39466.  [ruby-core:52779] [Bug #7935]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2013-02-24 07:48:31 +00:00
parent d64c926eba
commit 9e0683523a

View file

@ -2055,14 +2055,14 @@ class TestArray < Test::Unit::TestCase
ary = (0...10000).to_a
assert_raise(ArgumentError) {ary.sample(1, 2, random: nil)}
gen0 = proc do |max|
(max+1)/2
max/2
end
class << gen0
alias rand call
end
gen1 = proc do |max|
ary.replace([])
(max+1)/2
max/2
end
class << gen1
alias rand call