diff options
author | Shugo Maeda <shugo@ruby-lang.org> | 2021-09-11 20:23:36 +0900 |
---|---|---|
committer | Shugo Maeda <shugo@ruby-lang.org> | 2021-09-11 20:23:36 +0900 |
commit | 297f9b8d4c4502aa2ba0eccf93dfce215a7b6dfe (patch) | |
tree | 0b47c4b68336f12c62187ec3ce612934f4f289c2 /test/ruby/test_hash.rb | |
parent | d05ef38865af8dd43fd583e46f46509fe29e93cb (diff) |
Add documentation and tests for keyword argument value omission
[Feature #14579]
Diffstat (limited to 'test/ruby/test_hash.rb')
-rw-r--r-- | test/ruby/test_hash.rb | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/ruby/test_hash.rb b/test/ruby/test_hash.rb index af78e2fd29..f79879c20a 100644 --- a/test/ruby/test_hash.rb +++ b/test/ruby/test_hash.rb @@ -2178,22 +2178,4 @@ class TestHash < Test::Unit::TestCase end; end end - - def test_value_omission - x = 1 - y = 2 - assert_equal({x: 1, y: 2}, {x:, y:}) - assert_equal({one: 1, two: 2}, {one:, two:}) - assert_syntax_error('{"#{x}":}', /'\}'/) - end - - private - - def one - 1 - end - - def two - 2 - end end |