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

* test/ruby/test_numeric.rb (test_num2long): modify a test agaist the

change by r33108.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mrkn 2011-08-29 14:24:31 +00:00
parent 8ca1e6a0ee
commit 9742dec279
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
Sun Aug 29 23:22:00 2011 Kenta Murata <mrkn@mrkn.jp>
* test/ruby/test_numeric.rb (test_num2long): modify a test agaist the
change by r33108.
Sun Aug 29 09:58:00 2011 Kenta Murata <mrkn@mrkn.jp>
* numeric.c (bit_coerce): A Fixnum and a Bignum are only permitted for

View file

@ -224,7 +224,7 @@ class TestNumeric < Test::Unit::TestCase
assert_raise(TypeError) { 1 & 9223372036854777856.0 }
o = Object.new
def o.to_int; 1; end
assert_equal(1, 1 & o)
assert_raise(TypeError) { assert_equal(1, 1 & o) }
end
def test_eql