From 1484d1c32a81dc90dd4372defe43445ae1ac0aaa Mon Sep 17 00:00:00 2001 From: tadf Date: Wed, 19 Mar 2008 11:06:25 +0000 Subject: added an assertion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_bignum.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb index 9cf80e14f4..f9ffd477d3 100644 --- a/test/ruby/test_bignum.rb +++ b/test/ruby/test_bignum.rb @@ -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 -- cgit v1.2.3