mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
update PP with recent Kernel#inspect change. Patch by Yusuke Endoh.
* lib/pp.rb (class PP): do not call #to_s anymore, as #inspect no more does. * test/test_pp.rb (class PPInspectTest): remove related assertion. [ruby-core:43238][Feature #6130] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36700 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
795c29dcda
commit
e1aa72d441
3 changed files with 9 additions and 11 deletions
|
@ -118,7 +118,6 @@ class PPInspectTest < Test::Unit::TestCase
|
|||
def a.to_s() "aaa" end
|
||||
result = PP.pp(a, '')
|
||||
assert_equal("#{a.inspect}\n", result)
|
||||
assert_equal("aaa\n", result)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue