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