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

ruby-changes:14682

From: nobu <ko1@a...>
Date: Mon, 1 Feb 2010 16:32:33 +0900 (JST)
Subject: [ruby-changes:14682] Ruby:r26534 (ruby_1_8): * test/ruby/test_super.rb (TestSuper#test_define_method): modified

nobu	2010-02-01 16:32:24 +0900 (Mon, 01 Feb 2010)

  New Revision: 26534

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

  Log:
    * test/ruby/test_super.rb (TestSuper#test_define_method): modified
      expected result.

  Modified files:
    branches/ruby_1_8/test/ruby/test_super.rb

Index: ruby_1_8/test/ruby/test_super.rb
===================================================================
--- ruby_1_8/test/ruby/test_super.rb	(revision 26533)
+++ ruby_1_8/test/ruby/test_super.rb	(revision 26534)
@@ -120,7 +120,7 @@
     def uu(a)
       class << self
         define_method(:tt) do |sym|
-          super
+          super(sym)
         end
       end
     end
@@ -128,7 +128,7 @@
 
   class B
     def m
-      [self, "#{self.class.to_s}::m"]
+      [self, "#{self.to_s}::m"]
     end
   end
 
@@ -141,12 +141,12 @@
   def test_define_method
     a = A.new
     a.uu(12)
-    assert_equal("A#tt", a.tt(12), '[ruby-core:03856]')
+    assert_equal("A#tt", a.tt(12), "[ruby-core:3856]")
 
     bug2419 = '[ruby-core:26984]'
     q = C.t
     assert_raise(NoMethodError, bug2419) {q.call}
     c = C.new
-    assert_equal([c, "#{C.to_s}::m"], c.m, bug2419)
+    assert_equal([c, "#{c.to_s}::m"], c.m, bug2419)
   end
 end

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

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