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:
parent
be6931f7f7
commit
0ea759eac9
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue