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

ruby-changes:52136

From: kazu <ko1@a...>
Date: Mon, 13 Aug 2018 22:50:54 +0900 (JST)
Subject: [ruby-changes:52136] kazu:r64344 (trunk): Fix test bug

kazu	2018-08-13 22:50:48 +0900 (Mon, 13 Aug 2018)

  New Revision: 64344

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

  Log:
    Fix test bug

  Modified files:
    trunk/ext/-test-/notimplement/bug.c
    trunk/test/-ext-/test_notimplement.rb
Index: ext/-test-/notimplement/bug.c
===================================================================
--- ext/-test-/notimplement/bug.c	(revision 64343)
+++ ext/-test-/notimplement/bug.c	(revision 64344)
@@ -11,6 +11,8 @@ void https://github.com/ruby/ruby/blob/trunk/ext/-test-/notimplement/bug.c#L11
 Init_notimplement(void)
 {
     VALUE mBug = rb_define_module("Bug");
+    VALUE klass = rb_define_module_under(mBug, "NotImplement");
     rb_define_module_function(mBug, "funcall", bug_funcall, -1);
     rb_define_module_function(mBug, "notimplement", rb_f_notimplement, -1);
+    rb_define_method(klass, "notimplement", rb_f_notimplement, -1);
 }
Index: test/-ext-/test_notimplement.rb
===================================================================
--- test/-ext-/test_notimplement.rb	(revision 64343)
+++ test/-ext-/test_notimplement.rb	(revision 64344)
@@ -14,6 +14,6 @@ class Test_NotImplement < Test::Unit::Te https://github.com/ruby/ruby/blob/trunk/test/-ext-/test_notimplement.rb#L14
   end
 
   def test_not_method_defined
-    assert !Bug.method_defined?(:notimplement)
+    assert !Bug::NotImplement.method_defined?(:notimplement)
   end
 end

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

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