1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
akr 2002-06-30 07:30:26 +00:00
parent 788181a4eb
commit ba8174d11e

View file

@ -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