1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
sorah 2013-11-29 09:08:33 +00:00
parent 205399b0f4
commit 14361a72ff
2 changed files with 15 additions and 0 deletions

View file

@ -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

View file

@ -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