mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 09:04:05 +02:00
reverted to r29091; r29092 breaks test-all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
00dcf07ebc
commit
2531892cbc
4 changed files with 9 additions and 52 deletions
|
@ -1899,19 +1899,6 @@ class TestArray < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_shuffle_random
|
||||
cc = nil
|
||||
gen = proc do
|
||||
10000000
|
||||
end
|
||||
class << gen
|
||||
alias rand call
|
||||
end
|
||||
assert_raise(RangeError) {
|
||||
[*0..2].shuffle(random: gen)
|
||||
}
|
||||
end
|
||||
|
||||
def test_sample
|
||||
100.times do
|
||||
assert([0, 1, 2].include?([2, 1, 0].sample))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue