summaryrefslogtreecommitdiff
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
commit9d72cb269cfc3765d30e67c36a4eb1e40e7f570d (patch)
tree51d4467f0825671430b5d16f0bc3683546b2c718 /test
parenta943745a4234ef774f28ac9b87c5e4fe94ee96bb (diff)
* proc.c (missing_wrap): reverted.
git-svn-id: svn+ssh://ci.ruby-lang.org/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 37317cfd47..e4026eccba 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))