summaryrefslogtreecommitdiffstats
path: root/lib
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
commit35a58a431f981df50f318e51307277a603ab259a (patch)
tree8a15712d8c2f6363ebeb5041af68edaf5245d116 /lib
parent8c14f9eeebc9c8230b66f158af5b8341f61756ee (diff)
downloadruby-35a58a431f981df50f318e51307277a603ab259a.tar.gz
ruby-35a58a431f981df50f318e51307277a603ab259a.tar.xz
ruby-35a58a431f981df50f318e51307277a603ab259a.zip
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
Diffstat (limited to 'lib')
-rw-r--r--lib/pp.rb3
1 files changed, 1 insertions, 2 deletions
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("#<Object:#{hex} @a=#<Object:#{hex} ...>>\n", PP.pp(a, 79, ''))
+ assert_equal(a.inspect + "\n", PP.pp(a, 79, ''))
end
def test_withinspect