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:
parent
985549e008
commit
b9a216a6ef
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue