diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-21 23:38:23 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-21 23:38:23 +0000 |
| commit | a530e8501ed931a2f5e8c1bea5803a4c067f6db3 (patch) | |
| tree | 46f5b80d2eb8e997d02799574f54facc87224fca /test/ruby/test_rand.rb | |
| parent | 2a03a94e9dd392a418901a8c19901bac0d710d74 (diff) | |
| download | ruby-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.rb | 3 |
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 |
