ruby-changes:36268
From: nobu <ko1@a...>
Date: Sun, 9 Nov 2014 23:33:29 +0900 (JST)
Subject: [ruby-changes:36268] nobu:r48349 (trunk): test_bmethod.rb: super in bmethod test
nobu 2014-11-09 23:33:19 +0900 (Sun, 09 Nov 2014) New Revision: 48349 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48349 Log: test_bmethod.rb: super in bmethod test * test/-ext-/proc/test_bmethod.rb (test_super_in_bmethod): super in bmethod test for [Feature #10195]. Added directories: trunk/test/-ext-/proc/ Added files: trunk/test/-ext-/proc/test_bmethod.rb Modified files: trunk/ChangeLog Index: ChangeLog =================================================================== --- ChangeLog (revision 48348) +++ ChangeLog (revision 48349) @@ -6,7 +6,6 @@ Sun Nov 9 23:25:49 2014 Nobuyoshi Naka https://github.com/ruby/ruby/blob/trunk/ChangeLog#L6 * vm_insnhelper.c (vm_yield_with_cfunc): push defined class and bound proc method entry to the control frame. - Sun Nov 9 22:46:13 2014 Tanaka Akira <akr@f...> * test/open-uri: Test server log in server thread. Index: test/-ext-/proc/test_bmethod.rb =================================================================== --- test/-ext-/proc/test_bmethod.rb (revision 0) +++ test/-ext-/proc/test_bmethod.rb (revision 48349) @@ -0,0 +1,24 @@ https://github.com/ruby/ruby/blob/trunk/test/-ext-/proc/test_bmethod.rb#L1 +require 'test/unit' +require '-test-/proc' + +class TestProc < Test::Unit::TestCase + class TestBMethod < Test::Unit::TestCase + end +end + +class TestProc::TestBMethod + class Base + def foo(*a) + a + end + end + + class Bound < Base + define_method(:foo, Bug::Proc.make_caller(42)) + end + + def test_super_in_bmethod + obj = Bound.new + assert_equal([1, 42], obj.foo(1)) + end +end Property changes on: test/-ext-/proc/test_bmethod.rb ___________________________________________________________________ Added: svn:eol-style + LF -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/