1
0
Fork 0
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:
Nobuyoshi Nakada 2021-09-11 19:07:02 +09:00
parent c60dbcd1c5
commit 7899866849
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

View file

@ -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