diff options
author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-19 11:06:25 +0000 |
---|---|---|
committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-19 11:06:25 +0000 |
commit | 1484d1c32a81dc90dd4372defe43445ae1ac0aaa (patch) | |
tree | 5545d07e2941af553b7cfdc09217ba40d9d6e809 /test | |
parent | 80aa946f911747d28f1acf3f442c712dc164d194 (diff) | |
download | ruby-1484d1c32a81dc90dd4372defe43445ae1ac0aaa.tar.gz |
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.rb | 4 |
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 |