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

added an assertion.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
tadf 2008-03-19 11:06:25 +00:00
parent 80aa946f91
commit 1484d1c32a

View file

@ -238,6 +238,10 @@ class TestBignum < Test::Unit::TestCase
assert_raise(TypeError) { T32 / "foo" }
end
def test_idiv
assert_equal(715827882, 1073741824.div(Rational(3,2)), ' [ruby-dev:34066]')
end
def test_modulo
assert_raise(TypeError) { T32 % "foo" }
end