1
0
Fork 0
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:
akr 2007-08-18 03:44:28 +00:00
parent 6355e16257
commit f62fff5f41
3 changed files with 55 additions and 20 deletions

View file

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