aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-25 12:14:38 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-08-25 12:14:38 +0000
commit2531892cbc997ae25a121e21cca321722ec663c3 (patch)
tree245025f0a41a08b0b09457248d22bb04fb05b332 /test
parent00dcf07ebcb7af10753c1d6bbac3c6bb94740369 (diff)
downloadruby-2531892cbc997ae25a121e21cca321722ec663c3.tar.gz
reverted to r29091; r29092 breaks test-all
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_array.rb13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 4a8b700c77..f95d8870a1 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -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))