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

ruby-changes:15780

From: nobu <ko1@a...>
Date: Mon, 10 May 2010 01:00:50 +0900 (JST)
Subject: [ruby-changes:15780] Ruby:r27708 (ruby_1_9_2, trunk): * test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_gc):

nobu	2010-05-10 01:00:37 +0900 (Mon, 10 May 2010)

  New Revision: 27708

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

  Log:
    * test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_gc):
      reduced heavy test.

  Modified files:
    branches/ruby_1_9_2/test/bigdecimal/test_bigdecimal.rb
    trunk/test/bigdecimal/test_bigdecimal.rb

Index: test/bigdecimal/test_bigdecimal.rb
===================================================================
--- test/bigdecimal/test_bigdecimal.rb	(revision 27707)
+++ test/bigdecimal/test_bigdecimal.rb	(revision 27708)
@@ -702,7 +702,7 @@
   def test_gc
     bug3258 = '[ruby-dev:41213]'
     stress, GC.stress = GC.stress, true
-    1000.times do |i|
+    10.upto(20) do |i|
       b = BigDecimal.new("1"+"0"*i)
       assert_equal([1, "1", 10, i+1], b.split, bug3258)
     end
Index: ruby_1_9_2/test/bigdecimal/test_bigdecimal.rb
===================================================================
--- ruby_1_9_2/test/bigdecimal/test_bigdecimal.rb	(revision 27707)
+++ ruby_1_9_2/test/bigdecimal/test_bigdecimal.rb	(revision 27708)
@@ -702,7 +702,7 @@
   def test_gc
     bug3258 = '[ruby-dev:41213]'
     stress, GC.stress = GC.stress, true
-    1000.times do |i|
+    10.upto(20) do |i|
       b = BigDecimal.new("1"+"0"*i)
       assert_equal([1, "1", 10, i+1], b.split, bug3258)
     end

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

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