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

ruby-changes:36039

From: nobu <ko1@a...>
Date: Fri, 24 Oct 2014 01:24:00 +0900 (JST)
Subject: [ruby-changes:36039] nobu:r48120 (trunk): test_object.rb: for r48118

nobu	2014-10-24 01:23:46 +0900 (Fri, 24 Oct 2014)

  New Revision: 48120

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

  Log:
    test_object.rb: for r48118
    
    * test/ruby/test_object.rb: assertion for r48118.  defined method
      should be called.  [Bug #10421]

  Modified files:
    trunk/test/ruby/test_object.rb
Index: test/ruby/test_object.rb
===================================================================
--- test/ruby/test_object.rb	(revision 48119)
+++ test/ruby/test_object.rb	(revision 48120)
@@ -320,9 +320,12 @@ class TestObject < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_object.rb#L320
     INPUT
 
     bug10421 = '[ruby-dev:48691] [Bug #10421]'
-    assert_in_out_err([], <<-INPUT, [], [], bug10421)
+    assert_in_out_err([], <<-INPUT, ["1"], [], bug10421)
       $VERBOSE = false
-      def (BasicObject.new).object_id; end
+      class C < BasicObject
+        def object_id; 1; end
+      end
+      puts C.new.object_id
     INPUT
   end
 

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

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