summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/ruby/test_hash.rb1
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