1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Add more direct test for pp with a ruby2_keywords Hash

This commit is contained in:
Benoit Daloze 2020-01-23 10:59:26 +01:00
parent be6931f7f7
commit 0ea759eac9

View file

@ -179,6 +179,7 @@ class PPSingleLineTest < Test::Unit::TestCase
def test_hash_in_array
assert_equal("[{}]", PP.singleline_pp([->(*a){a.last}.ruby2_keywords.call(**{})], ''.dup))
assert_equal("[{}]", PP.singleline_pp([Hash.ruby2_keywords_hash({})], ''.dup))
end
end