summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-29 09:08:33 +0000
committersorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-29 09:08:33 +0000
commit14361a72ff538f2b0a8833ecbef01c3ec7f19c48 (patch)
treee629c586f076cc3bf8b8cc6021cfe0f55e97540a
parent205399b0f4849bf3f8845b82b6e85416cd68eba2 (diff)
* test/ruby/test_case.rb (test_method_missing): Test for r43913.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--test/ruby/test_case.rb11
2 files changed, 15 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 5e11b17..872efab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Fri Nov 29 18:06:45 2013 Shota Fukumori <her@sorah.jp>
+
+ * test/ruby/test_case.rb (test_method_missing): Test for r43913.
+
Fri Nov 29 17:53:22 2013 Shota Fukumori <her@sorah.jp>
* vm_insnhelper.c (check_match): Fix SEGV with VM_CHECKMATCH_TYPE_CASE
diff --git a/test/ruby/test_case.rb b/test/ruby/test_case.rb
index 0067b74..f2c553e 100644
--- a/test/ruby/test_case.rb
+++ b/test/ruby/test_case.rb
@@ -103,4 +103,15 @@ class TestCase < Test::Unit::TestCase
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