summaryrefslogtreecommitdiff
path: root/test/ruby
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
commit2e4ad56fc2139991cb6e90df1f7bfd1cfbe49f00 (patch)
tree46f5b80d2eb8e997d02799574f54facc87224fca /test/ruby
parent5ab016489cb35b77bbb0192a2bf818ff0fe9be8c (diff)
* test/ruby/test_rand.rb (test_big_seed): tests also instance methods.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-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 140851d..f32696c 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