From 7899866849c1bac708e513e5d9e14467a0155a9e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 11 Sep 2021 19:07:02 +0900 Subject: Another test for [Feature #14579] The value of the dynamic key cannot be omitted for now. --- test/ruby/test_hash.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test') diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index 5aee1b5d5c..af78e2fd29 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -2184,6 +2184,7 @@ class TestHash < Test::Unit::TestCase y = 2 assert_equal({x: 1, y: 2}, {x:, y:}) assert_equal({one: 1, two: 2}, {one:, two:}) + assert_syntax_error('{"#{x}":}', /'\}'/) end private -- cgit v1.2.3