summaryrefslogtreecommitdiffhomepage
path: root/test/t/hash.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/t/hash.rb')
-rw-r--r--test/t/hash.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/t/hash.rb b/test/t/hash.rb
index 9bc2668ae..1b4db056e 100644
--- a/test/t/hash.rb
+++ b/test/t/hash.rb
@@ -1006,3 +1006,9 @@ assert('#== receiver should be specified value') do
%i[has_value? value?].each{|m| assert_nothing_raised{h.__send__(m, v1)}}
end
end
+
+assert('test value ommision') do
+ x = 1
+ y = 2
+ assert_equal({x:1, y:2}, {x:, y:})
+end