summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_keyword.rb1
-rw-r--r--test/ruby/test_literal.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_keyword.rb b/test/ruby/test_keyword.rb
index a899934ed6..9094259bc2 100644
--- a/test/ruby/test_keyword.rb
+++ b/test/ruby/test_keyword.rb
@@ -4357,6 +4357,7 @@ class TestKeywordArgumentsSymProcRefinements < Test::Unit::TestCase
x = 1
y = 2
assert_equal({x: 1, y: 2}, f.call(x:, y:))
+ assert_equal({x: 1, y: 2, z: 3}, f.call(x:, y:, z: 3))
assert_equal({one: 1, two: 2}, f.call(one:, two:))
end
diff --git a/test/ruby/test_literal.rb b/test/ruby/test_literal.rb
index c8a65c923a..ccfe1b1919 100644
--- a/test/ruby/test_literal.rb
+++ b/test/ruby/test_literal.rb
@@ -510,6 +510,7 @@ class TestRubyLiteral < Test::Unit::TestCase
x = 1
y = 2
assert_equal({x: 1, y: 2}, {x:, y:})
+ assert_equal({x: 1, y: 2, z: 3}, {x:, y:, z: 3})
assert_equal({one: 1, two: 2}, {one:, two:})
assert_syntax_error('{"#{x}":}', /'\}'/)
end