From 9c01b5e3a1c96642d3cb5bf0ef0f8989eb005fdc Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 25 Sep 2009 04:48:54 +0000 Subject: * proc.c (missing_wrap): reverted. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_object.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') diff --git a/test/ruby/test_object.rb b/test/ruby/test_object.rb index 37317cfd4..e4026eccb 100644 --- a/test/ruby/test_object.rb +++ b/test/ruby/test_object.rb @@ -325,6 +325,7 @@ class TestObject < Test::Unit::TestCase foo = c.new assert_equal([:foo], foo.foobar); assert_equal([:foo, 1], foo.foobar(1)); + assert_equal([:foo, 1, 2, 3, 4, 5], foo.foobar(1, 2, 3, 4, 5)); assert(foo.respond_to?(:foobar)) assert_equal(false, foo.respond_to?(:foobarbaz)) assert_raise(NoMethodError) do @@ -334,6 +335,7 @@ class TestObject < Test::Unit::TestCase foobar = foo.method(:foobar) assert_equal([:foo], foobar.call); assert_equal([:foo, 1], foobar.call(1)); + assert_equal([:foo, 1, 2, 3, 4, 5], foobar.call(1, 2, 3, 4, 5)); c = Class.new(c) assert_equal(false, c.method_defined?(:foobar)) -- cgit