From efe97f7f7b0175cc2ecea591d57c814fd03fe70d Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 23 Dec 2009 11:48:55 +0000 Subject: * parse.y (args): splat other than direct array literal. [ruby-dev:39771] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_array.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/ruby/test_array.rb') diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 02733b941a..adac3e19d7 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -1280,7 +1280,8 @@ class TestArray < Test::Unit::TestCase def test_splat a = [2,3] assert_equal([1,2,3], [1, *a]) + bug2401 = '[ruby-dev:39771]' a = [2,3] - assert_equal([2,3], [*a]) + assert_equal([2,3], [*a], bug2401) end end -- cgit v1.2.3