diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-29 13:29:12 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-29 13:29:12 +0000 |
| commit | 37379378fa275baf099e0fda7240197ff6c03008 (patch) | |
| tree | f0539bc7d34396eb61f61579dcd03257f5b01844 /test/ruby | |
| parent | 35ebf4fd2b00d403a4f051aed3f5f9a10e320503 (diff) | |
| download | ruby-37379378fa275baf099e0fda7240197ff6c03008.tar.gz ruby-37379378fa275baf099e0fda7240197ff6c03008.tar.xz ruby-37379378fa275baf099e0fda7240197ff6c03008.zip | |
* random.c (rb_f_rand): type check simplified. strings are no
longer allowed for argument. [ruby-dev:37655]
* test/ruby/test_rand.rb (TestRand::o.to_int): need override
to_int.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_rand.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_rand.rb b/test/ruby/test_rand.rb index b7d841dbb..7f1e71de3 100644 --- a/test/ruby/test_rand.rb +++ b/test/ruby/test_rand.rb @@ -144,7 +144,7 @@ class TestRand < Test::Unit::TestCase 0.000000000000001) srand(0) o = Object.new - def o.to_i; 100; end + def o.to_int; 100; end assert_equal(44, rand(o)) assert_equal(47, rand(o)) assert_equal(64, rand(o)) |
