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

ruby-changes:38064

From: nobu <ko1@a...>
Date: Wed, 1 Apr 2015 15:02:55 +0900 (JST)
Subject: [ruby-changes:38064] nobu:r50145 (trunk): test_objspace.rb: skip test_count_nodes

nobu	2015-04-01 15:02:45 +0900 (Wed, 01 Apr 2015)

  New Revision: 50145

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

  Log:
    test_objspace.rb: skip test_count_nodes
    
    * test/objspace/test_objspace.rb (test_count_nodes): NODEs are no
      longer used generally.

  Modified files:
    trunk/test/objspace/test_objspace.rb
Index: test/objspace/test_objspace.rb
===================================================================
--- test/objspace/test_objspace.rb	(revision 50144)
+++ test/objspace/test_objspace.rb	(revision 50145)
@@ -46,9 +46,9 @@ class TestObjSpace < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/objspace/test_objspace.rb#L46
   def test_memsize_of_all
     assert_kind_of(Integer, a = ObjectSpace.memsize_of_all)
     assert_kind_of(Integer, b = ObjectSpace.memsize_of_all(String))
-    assert(a > b)
-    assert(a > 0)
-    assert(b > 0)
+    assert_operator(a, :>, b)
+    assert_operator(a, :>, 0)
+    assert_operator(b, :>, 0)
     assert_raise(TypeError) {ObjectSpace.memsize_of_all('error')}
   end
 
@@ -69,7 +69,7 @@ class TestObjSpace < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/objspace/test_objspace.rb#L69
     assert_not_empty(arg)
     bug8014 = '[ruby-core:53130] [Bug #8014]'
     assert_empty(arg.select {|k, v| !(Symbol === k && Integer === v)}, bug8014)
-  end
+  end if false
 
   def test_count_tdata_objects
     res = ObjectSpace.count_tdata_objects

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

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