summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_bignum.rb
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
commitc9c4c4101d95415bf44b2876a394524bce265a8f (patch)
tree5545d07e2941af553b7cfdc09217ba40d9d6e809 /test/ruby/test_bignum.rb
parentb259fd40f13796db88e4770fe9c2c6daf2905066 (diff)
downloadruby-c9c4c4101d95415bf44b2876a394524bce265a8f.tar.gz
ruby-c9c4c4101d95415bf44b2876a394524bce265a8f.tar.xz
ruby-c9c4c4101d95415bf44b2876a394524bce265a8f.zip
added an assertion.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_bignum.rb')
-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 9cf80e14f..f9ffd477d 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