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

ruby-changes:52133

From: kazu <ko1@a...>
Date: Mon, 13 Aug 2018 22:27:55 +0900 (JST)
Subject: [ruby-changes:52133] kazu:r64341 (trunk): Add test for method_defined?(notimplement)

kazu	2018-08-13 22:27:49 +0900 (Mon, 13 Aug 2018)

  New Revision: 64341

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

  Log:
    Add test for method_defined?(notimplement)

  Modified files:
    trunk/test/-ext-/test_notimplement.rb
Index: test/-ext-/test_notimplement.rb
===================================================================
--- test/-ext-/test_notimplement.rb	(revision 64340)
+++ test/-ext-/test_notimplement.rb	(revision 64341)
@@ -12,4 +12,8 @@ class Test_NotImplement < Test::Unit::Te https://github.com/ruby/ruby/blob/trunk/test/-ext-/test_notimplement.rb#L12
   def test_respond_to
     assert_not_respond_to(Bug, :notimplement)
   end
+
+  def test_not_method_defined
+    assert !Bug.method_defined?(:notimplement)
+  end
 end

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

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