summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_rand.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-21 23:38:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-21 23:38:23 +0000
commita530e8501ed931a2f5e8c1bea5803a4c067f6db3 (patch)
tree46f5b80d2eb8e997d02799574f54facc87224fca /test/ruby/test_rand.rb
parent2a03a94e9dd392a418901a8c19901bac0d710d74 (diff)
downloadruby-a530e8501ed931a2f5e8c1bea5803a4c067f6db3.tar.gz
ruby-a530e8501ed931a2f5e8c1bea5803a4c067f6db3.tar.xz
ruby-a530e8501ed931a2f5e8c1bea5803a4c067f6db3.zip
* test/ruby/test_rand.rb (test_big_seed): tests also instance methods.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_rand.rb')
-rw-r--r--test/ruby/test_rand.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb
index 140851d5b..f32696cf1 100644
--- a/test/ruby/test_rand.rb
+++ b/test/ruby/test_rand.rb
@@ -166,7 +166,6 @@ class TestRand < Test::Unit::TestCase
end
def test_big_seed
- srand(2**1000000-1)
- assert_equal(1143843490, rand(0x100000000))
+ assert_random_int(%w(1143843490), 0x100000000, 2**1000000-1)
end
end