ruby-changes:59784
From: Benoit <ko1@a...>
Date: Thu, 23 Jan 2020 19:00:07 +0900 (JST)
Subject: [ruby-changes:59784] 0ea759eac9 (master): Add more direct test for pp with a ruby2_keywords Hash
https://git.ruby-lang.org/ruby.git/commit/?id=0ea759eac9 From 0ea759eac9234afc47e8fb1bcacfe9ee12c8ffb6 Mon Sep 17 00:00:00 2001 From: Benoit Daloze <eregontp@g...> Date: Thu, 23 Jan 2020 10:59:26 +0100 Subject: Add more direct test for pp with a ruby2_keywords Hash 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 https://github.com/ruby/ruby/blob/trunk/test/test_pp.rb#L179 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 -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/