summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-19 11:06:25 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-03-19 11:06:25 +0000
commit1484d1c32a81dc90dd4372defe43445ae1ac0aaa (patch)
tree5545d07e2941af553b7cfdc09217ba40d9d6e809 /test
parent80aa946f911747d28f1acf3f442c712dc164d194 (diff)
added an assertion.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_bignum.rb4
1 files changed, 4 insertions, 0 deletions
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