From 8f5ac0c75ad3663bbe410946f3be9cb114e99f6b Mon Sep 17 00:00:00 2001 From: ko1 Date: Fri, 15 Jun 2007 03:27:33 +0000 Subject: * vm.c (th_yield_setup_args): |v| should work as |v,|. ex) def m;yield 1, 2; end; m{|v| p v} #=> 1 * parse.y: apply above change for "for" statement. * test/ruby/test_assignment.rb: ditto * test/ruby/test_basicinstructions.rb: ditto. * test/ruby/test_iterator.rb: ditto. * test/ruby/test_yield.rb: ditto. * compile.c (iseq_compile_each): fix debug. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_basicinstructions.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_basicinstructions.rb') diff --git a/test/ruby/test_basicinstructions.rb b/test/ruby/test_basicinstructions.rb index 3e52ef62d..4d3f03049 100644 --- a/test/ruby/test_basicinstructions.rb +++ b/test/ruby/test_basicinstructions.rb @@ -621,8 +621,8 @@ class TestBasicInstructions < Test::Unit::TestCase assert_equal [1, 2, 3], [1, *a] a = nil - assert_equal [nil], [*a] # FIXME: []? [nil]? error? - assert_equal [1], [1, *a] # FIXME: [1, nil]? error? + assert_equal [], [*a] + assert_equal [1], [1, *a] end end -- cgit