From ba8174d11e05a96da71b1de659e659b6c7d513e9 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 30 Jun 2002 07:30:26 +0000 Subject: made object address test to compare inspect's result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/pp.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/pp.rb') diff --git a/lib/pp.rb b/lib/pp.rb index 19a2b9d48a..44188e8f52 100644 --- a/lib/pp.rb +++ b/lib/pp.rb @@ -536,8 +536,7 @@ if __FILE__ == $0 def test_object a = Object.new a.instance_eval {@a = a} - hex = '0x' + ('%x' % (a.id * 2)) - assert_equal("#>\n", PP.pp(a, 79, '')) + assert_equal(a.inspect + "\n", PP.pp(a, 79, '')) end def test_withinspect -- cgit v1.2.3