From cbdac1eaf69e52d353e85951f6667b6332abcff7 Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 5 Dec 2014 00:46:08 +0000 Subject: parse.y: fix lex_state after tLABEL_END * parse.y (parser_yylex): fix lex_state after tLABEL_END, should be EXPR_LABELARG to be followed by "paren with arg". [ruby-core:66705] [Feature #4935] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_hash.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby/test_hash.rb') diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index d769ef89e7..86305ee958 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -1274,9 +1274,9 @@ class TestHash < Test::Unit::TestCase feature4935 = '[ruby-core:37553] [Feature #4935]' x = 'world' hash = assert_nothing_raised(SyntaxError) do - break eval(%q({foo: 1, "foo-bar": 2, "hello-#{x}": 3, 'hello-#{x}': 4})) + break eval(%q({foo: 1, "foo-bar": 2, "hello-#{x}": 3, 'hello-#{x}': 4, 'bar': {}})) end - assert_equal({:foo => 1, :'foo-bar' => 2, :'hello-world' => 3, :'hello-#{x}' => 4}, hash) + assert_equal({:foo => 1, :'foo-bar' => 2, :'hello-world' => 3, :'hello-#{x}' => 4, :bar => {}}, hash) end class TestSubHash < TestHash -- cgit v1.2.3