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

ruby-changes:12530

From: nobu <ko1@a...>
Date: Wed, 22 Jul 2009 08:38:38 +0900 (JST)
Subject: [ruby-changes:12530] Ruby:r24234 (trunk): * test/ruby/test_rand.rb (test_big_seed): tests also instance methods.

nobu	2009-07-22 08:38:23 +0900 (Wed, 22 Jul 2009)

  New Revision: 24234

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=24234

  Log:
    * test/ruby/test_rand.rb (test_big_seed): tests also instance methods.

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

Index: test/ruby/test_rand.rb
===================================================================
--- test/ruby/test_rand.rb	(revision 24233)
+++ test/ruby/test_rand.rb	(revision 24234)
@@ -166,7 +166,6 @@
   end
 
   def test_big_seed
-    srand(2**1000000-1)
-    assert_equal(1143843490, rand(0x100000000))
+    assert_random_int(%w(1143843490), 0x100000000, 2**1000000-1)
   end
 end

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

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