mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Another test for [Feature #14579]
The value of the dynamic key cannot be omitted for now.
This commit is contained in:
parent
c60dbcd1c5
commit
7899866849
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue