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

add a test for [ruby-dev:34553].

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-05-01 05:11:29 +00:00
parent 577cb7c53c
commit 3943e48fcc

View file

@ -236,6 +236,7 @@ class TestBignum < Test::Unit::TestCase
def test_div
assert_equal(T32.to_f, T32 / 1.0)
assert_raise(TypeError) { T32 / "foo" }
assert_equal(0x20000000, 0x40000001.div(2.0), "[ruby-dev:34553]")
end
def test_idiv