Add more direct test for pp with a ruby2_keywords Hash
This commit is contained in:
parent
be6931f7f7
commit
0ea759eac9
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user