summaryrefslogtreecommitdiff
path: root/test/test_pp.rb
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-01-23 10:59:26 +0100
committerBenoit Daloze <eregontp@gmail.com>2020-01-23 10:59:26 +0100
commit0ea759eac9234afc47e8fb1bcacfe9ee12c8ffb6 (patch)
treef0d06601ae3149a9cf278acc4101a3dcc6f5efc1 /test/test_pp.rb
parentbe6931f7f7d2eed46226f0cc452de64cdeec0dab (diff)
Add more direct test for pp with a ruby2_keywords Hash
Diffstat (limited to 'test/test_pp.rb')
-rw-r--r--test/test_pp.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_pp.rb b/test/test_pp.rb
index 026b2ac..cd16af6 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