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

ruby-changes:31835

From: sorah <ko1@a...>
Date: Fri, 29 Nov 2013 18:08:43 +0900 (JST)
Subject: [ruby-changes:31835] sorah:r43914 (trunk): * test/ruby/test_case.rb (test_method_missing): Test for r43913.

sorah	2013-11-29 18:08:33 +0900 (Fri, 29 Nov 2013)

  New Revision: 43914

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

  Log:
    * test/ruby/test_case.rb (test_method_missing): Test for r43913.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_case.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 43913)
+++ ChangeLog	(revision 43914)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Nov 29 18:06:45 2013  Shota Fukumori  <her@s...>
+
+	* test/ruby/test_case.rb (test_method_missing): Test for r43913.
+
 Fri Nov 29 17:53:22 2013  Shota Fukumori  <her@s...>
 
 	* vm_insnhelper.c (check_match): Fix SEGV with VM_CHECKMATCH_TYPE_CASE
Index: test/ruby/test_case.rb
===================================================================
--- test/ruby/test_case.rb	(revision 43913)
+++ test/ruby/test_case.rb	(revision 43914)
@@ -103,4 +103,15 @@ class TestCase < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_case.rb#L103
       assert(false)
     end
   end
+
+  def test_method_missing
+    flag = false
+
+    case 1
+    when Class.new(BasicObject) { def method_missing(*) true end }.new
+      flag = true
+    end
+
+    assert(flag)
+  end
 end

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

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