summaryrefslogtreecommitdiff
path: root/test/ruby/test_hash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_hash.rb')
-rw-r--r--test/ruby/test_hash.rb18
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