summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-02 15:32:04 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-02 15:32:04 +0000
commita3bc33a752be4d05a2ab24610e238c8e5140896b (patch)
tree863f078dcbac2feabe27064c5a486e0faa5a7d55 /test
parente0910767b6e775b2766fba360b3e10d9f7bd8dd6 (diff)
downloadruby-a3bc33a752be4d05a2ab24610e238c8e5140896b.tar.gz
ruby-a3bc33a752be4d05a2ab24610e238c8e5140896b.tar.xz
ruby-a3bc33a752be4d05a2ab24610e238c8e5140896b.zip
* random.c (rb_random_int): arguments have to be converted to
integer. [ruby-core:24679] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_rand.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb
index b932128e2..39444af8a 100644
--- a/test/ruby/test_rand.rb
+++ b/test/ruby/test_rand.rb
@@ -344,6 +344,7 @@ END
1267650600228229401496703205383).each do |w|
assert_equal(w.to_i, r.int(2**100+5..2**100+9))
end
+ assert_equal(3, r.int(3.1..4), '[ruby-core:24679]')
end
def test_random_float