diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-11 19:07:02 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-09-11 19:09:37 +0900 |
commit | 7899866849c1bac708e513e5d9e14467a0155a9e (patch) | |
tree | 7f89d433e715d1b0d631ddb36e777ca5398af9ea /test | |
parent | c60dbcd1c55cd77a24c41d5e1a9555622be8b2b8 (diff) |
Another test for [Feature #14579]
The value of the dynamic key cannot be omitted for now.
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_hash.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |