summaryrefslogtreecommitdiffstats
path: root/bootstraptest
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-01 22:02:23 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-01 22:02:23 +0000
commit8890ac219acf9f7d82a983a3beb22feef11a8252 (patch)
tree53d550973a26f98ae429eef5d5db3a95a6727f70 /bootstraptest
parented4f2c0744489f2be58f75f912dcd4fa6b8cb0ca (diff)
downloadruby-8890ac219acf9f7d82a983a3beb22feef11a8252.tar.gz
ruby-8890ac219acf9f7d82a983a3beb22feef11a8252.tar.xz
ruby-8890ac219acf9f7d82a983a3beb22feef11a8252.zip
* proc.c (proc_dup): proc->block.proc should be self.
* bootstraptest/test_knownbug.rb, test_method.rb: move a fixed test. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@13589 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bootstraptest')
-rw-r--r--bootstraptest/test_knownbug.rb16
-rw-r--r--bootstraptest/test_method.rb15
2 files changed, 15 insertions, 16 deletions
diff --git a/bootstraptest/test_knownbug.rb b/bootstraptest/test_knownbug.rb
index 5ac0cd11f..813c9427e 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 56bb1146a..54ba5f844 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
+}