зеркало из https://github.com/github/ruby.git
* test/ruby/test_proc.rb (TestProc#test_block_given_method_to_proc):
run test for r41359. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
62bd8db198
Коммит
cc9a7adeac
|
@ -1,3 +1,8 @@
|
||||||
|
Mon Jun 17 22:16:02 2013 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||||
|
|
||||||
|
* test/ruby/test_proc.rb (TestProc#test_block_given_method_to_proc):
|
||||||
|
run test for r41359.
|
||||||
|
|
||||||
Mon Jun 17 21:42:18 2013 Kazuki Tsujimoto <kazuki@callcc.net>
|
Mon Jun 17 21:42:18 2013 Kazuki Tsujimoto <kazuki@callcc.net>
|
||||||
|
|
||||||
* include/ruby/ruby.h, vm_eval.c (rb_funcall_with_block):
|
* include/ruby/ruby.h, vm_eval.c (rb_funcall_with_block):
|
||||||
|
|
|
@ -191,7 +191,6 @@ class TestProc < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_block_given_method_to_proc
|
def test_block_given_method_to_proc
|
||||||
bug8341 = '[Bug #8341]'
|
bug8341 = '[Bug #8341]'
|
||||||
skip bug8341
|
|
||||||
m = method(:m_block_given?).to_proc
|
m = method(:m_block_given?).to_proc
|
||||||
assert(!m.call, "#{bug8341} without block")
|
assert(!m.call, "#{bug8341} without block")
|
||||||
assert(m.call {}, "#{bug8341} with block")
|
assert(m.call {}, "#{bug8341} with block")
|
||||||
|
|
Загрузка…
Ссылка в новой задаче