summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-25 04:48:54 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-09-25 04:48:54 +0000
commit9c01b5e3a1c96642d3cb5bf0ef0f8989eb005fdc (patch)
tree51d4467f0825671430b5d16f0bc3683546b2c718 /test
parente3b6e1dc700e1135b62aa77b51755ac94de7a2c3 (diff)
downloadruby-9c01b5e3a1c96642d3cb5bf0ef0f8989eb005fdc.tar.gz
ruby-9c01b5e3a1c96642d3cb5bf0ef0f8989eb005fdc.tar.xz
ruby-9c01b5e3a1c96642d3cb5bf0ef0f8989eb005fdc.zip
* proc.c (missing_wrap): reverted.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@25091 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_object.rb2
1 files changed, 2 insertions, 0 deletions
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))