1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add test_rand_0x100000000.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2005-02-07 16:11:14 +00:00
parent 501a409e5e
commit c47ca1f02f

View file

@ -50,6 +50,13 @@ class TestRand < Test::Unit::TestCase
}
end
def test_rand_0x100000000
srand(311702798)
%w(4119812344 3870378946 80324654 4294967296 410016213).each {|w|
assert_equal(w.to_i, rand(0x100000001))
}
end
def test_0x1000000000000
srand(0)
%w(11736396900911