From 35a58a431f981df50f318e51307277a603ab259a 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: http://svn.ruby-lang.org/repos/ruby/trunk@2612 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/pp.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/pp.rb b/lib/pp.rb index 19a2b9d48..44188e8f5 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