[前][次][番号順一覧][スレッド一覧]

ruby-changes:4314

From: ko1@a...
Date: Wed, 19 Mar 2008 20:06:35 +0900 (JST)
Subject: [ruby-changes:4314] tadf - Ruby:r15804 (trunk): added an assertion.

tadf	2008-03-19 20:06:25 +0900 (Wed, 19 Mar 2008)

  New Revision: 15804

  Modified files:
    trunk/test/ruby/test_bignum.rb

  Log:
    added an assertion.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_bignum.rb?r1=15804&r2=15803&diff_format=u

Index: test/ruby/test_bignum.rb
===================================================================
--- test/ruby/test_bignum.rb	(revision 15803)
+++ test/ruby/test_bignum.rb	(revision 15804)
@@ -238,6 +238,10 @@
     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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]