diff options
Diffstat (limited to 'test/ruby')
-rw-r--r-- | test/ruby/test_rand.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb index c3282cf804..5ff2fe5e68 100644 --- a/test/ruby/test_rand.rb +++ b/test/ruby/test_rand.rb @@ -379,6 +379,8 @@ END assert_in_delta(1.7151893663724195, r.rand(1.0...2.0), 0.0001, '[ruby-core:24655]') assert_in_delta(7.027633760716439, r.rand(1.0...11.0), 0.0001, '[ruby-core:24655]') assert_in_delta(3.0897663659937937, r.rand(2.0...4.0), 0.0001, '[ruby-core:24655]') + + assert_nothing_raised {r.rand(-Float::MAX..Float::MAX)} end def test_random_equal |