From 88f570d9ae5984decc313f10b54d259ff54fa525 Mon Sep 17 00:00:00 2001 From: ko1 Date: Mon, 1 Oct 2007 22:02:23 +0000 Subject: * proc.c (proc_dup): proc->block.proc should be self. * bootstraptest/test_knownbug.rb, test_method.rb: move a fixed test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- bootstraptest/test_knownbug.rb | 16 ---------------- bootstraptest/test_method.rb | 15 +++++++++++++++ 2 files changed, 15 insertions(+), 16 deletions(-) (limited to 'bootstraptest') diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb index 5ac0cd11fd..813c9427ef 100644 --- a/bootstraptest/test_knownbug.rb +++ b/bootstraptest/test_knownbug.rb @@ -13,22 +13,6 @@ assert_finish 1, %q{ w.write "a" }, '[ruby-dev:31866]' -assert_equal 'ok', %q{ - class Module - def define_method2(name, &block) - define_method(name, &block) - end - end - class C - define_method2(:m) {|x, y| :fail } - end - begin - C.new.m([1,2]) - rescue ArgumentError - :ok - end -} - assert_normal_exit %q{ Marshal.load(Marshal.dump({"k"=>"v"}), lambda {|v| }) } diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb index 56bb1146ac..54ba5f8442 100644 --- a/bootstraptest/test_method.rb +++ b/bootstraptest/test_method.rb @@ -986,3 +986,18 @@ assert_normal_exit %q{ end }, '[ruby-dev:31818]' +assert_equal 'ok', %q{ + class Module + def define_method2(name, &block) + define_method(name, &block) + end + end + class C + define_method2(:m) {|x, y| :fail } + end + begin + C.new.m([1,2]) + rescue ArgumentError + :ok + end +} -- cgit v1.2.3