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

ruby-changes:28005

From: naruse <ko1@a...>
Date: Tue, 2 Apr 2013 15:28:19 +0900 (JST)
Subject: [ruby-changes:28005] naruse:r40057 (trunk): use long_ary to suppress warning

naruse	2013-04-02 15:28:10 +0900 (Tue, 02 Apr 2013)

  New Revision: 40057

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

  Log:
    use long_ary to suppress warning

  Modified files:
    trunk/test/objspace/test_objspace.rb

Index: test/objspace/test_objspace.rb
===================================================================
--- test/objspace/test_objspace.rb	(revision 40056)
+++ test/objspace/test_objspace.rb	(revision 40057)
@@ -93,7 +93,7 @@ class TestObjSpace < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/objspace/test_objspace.rb#L93
         }
       end
     }
-    assert_operator(max, :>=, 1_001, "1000 elems + Array class")
+    assert_operator(max, :>=, long_ary.size+1, "1000 elems + Array class")
     eom
   end
 

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

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