summaryrefslogtreecommitdiff
path: root/lib/pp.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-30 07:30:26 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-06-30 07:30:26 +0000
commitba8174d11e05a96da71b1de659e659b6c7d513e9 (patch)
tree8a15712d8c2f6363ebeb5041af68edaf5245d116 /lib/pp.rb
parent788181a4eb5b6e50d9a28aeab274dff4f170dbe6 (diff)
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
Diffstat (limited to 'lib/pp.rb')
-rw-r--r--lib/pp.rb3
1 files changed, 1 insertions, 2 deletions
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("#<Object:#{hex} @a=#<Object:#{hex} ...>>\n", PP.pp(a, 79, ''))
+ assert_equal(a.inspect + "\n", PP.pp(a, 79, ''))
end
def test_withinspect