1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add yield test for [ruby-dev:21707]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4844 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
seki 2003-10-26 13:07:58 +00:00
parent 985549e008
commit b9a216a6ef

View file

@ -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