summaryrefslogtreecommitdiff
path: root/test/drb
diff options
context:
space:
mode:
authorseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-26 13:07:58 +0000
committerseki <seki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-10-26 13:07:58 +0000
commitb9a216a6ef0510cd2a5b2675ec566bf55eff35b1 (patch)
treea815f6ac36d384443791507da9b12fde98f91eaa /test/drb
parent985549e00868b6e3f95aa2409bb8485383546a62 (diff)
add yield test for [ruby-dev:21707]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/drb')
-rw-r--r--test/drb/test_drb.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/drb/test_drb.rb b/test/drb/test_drb.rb
index a3c259b..2aa1420 100644
--- a/test/drb/test_drb.rb
+++ b/test/drb/test_drb.rb
@@ -44,6 +44,11 @@ class TestDRbYield < Test::Unit::TestCase
@there.echo_yield_2(3, nil) {|one, two|}
assert_equal(3, one)
assert_equal(nil, two)
+
+ one = two = nil
+ @there.echo_yield_1([:key, :value]) {|one, two|}
+ assert_equal(:key, one)
+ assert_equal(:value, two)
end
def test_03_many