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

ruby-changes:28533

From: nobu <ko1@a...>
Date: Sun, 5 May 2013 19:02:53 +0900 (JST)
Subject: [ruby-changes:28533] nobu:r40585 (trunk): * test/ruby/test_defined.rb (TestDefined#test_super_toplevel):

nobu	2013-05-05 19:02:41 +0900 (Sun, 05 May 2013)

  New Revision: 40585

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

  Log:
    * test/ruby/test_defined.rb (TestDefined#test_super_toplevel):
      additional test for r40584.

  Modified files:
    trunk/test/ruby/test_defined.rb

Index: test/ruby/test_defined.rb
===================================================================
--- test/ruby/test_defined.rb	(revision 40584)
+++ test/ruby/test_defined.rb	(revision 40585)
@@ -1,4 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/test/ruby/test_defined.rb#L1
 require 'test/unit'
+require_relative 'envutil'
 
 class TestDefined < Test::Unit::TestCase
   class Foo
@@ -204,4 +205,8 @@ class TestDefined < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_defined.rb#L205
     o.extend(m)
     assert_equal("super", o.x)
   end
+
+  def test_super_toplevel
+    assert_separately([], "assert_nil(defined?(super))")
+  end
 end

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

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