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:
parent
80aa946f91
commit
1484d1c32a
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue