From 2e4ad56fc2139991cb6e90df1f7bfd1cfbe49f00 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 21 Jul 2009 23:38:23 +0000 Subject: * 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 --- test/ruby/test_rand.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb index 140851d5ba..f32696cf10 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 -- cgit v1.2.3