mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_yield.rb (TestYieldGen): add test for yielding to
lambda using lambda parameter passing emulator. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6355e16257
commit
f62fff5f41
3 changed files with 55 additions and 20 deletions
|
@ -636,7 +636,6 @@ class TestAssignmentGen < Test::Unit::TestCase
|
|||
lopen = lhs.any? {|e| e == '*' || e == ',' }
|
||||
ropen = rhs.any? {|e| e == '*' || e == ',' }
|
||||
lhs = extract_single_element(lhs) if !lopen
|
||||
rhs = ["(",rhs,")"] if ropen
|
||||
begin
|
||||
rv = eval((ropen ? ["[",assign[2],"]"] : assign[2]).join(''))
|
||||
rescue Exception
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue