From 0ea759eac9234afc47e8fb1bcacfe9ee12c8ffb6 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Thu, 23 Jan 2020 10:59:26 +0100 Subject: [PATCH] Add more direct test for pp with a ruby2_keywords Hash --- test/test_pp.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_pp.rb b/test/test_pp.rb index 026b2ac9f7..cd16af6394 100644 --- a/test/test_pp.rb +++ b/test/test_pp.rb @@ -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