зеркало из https://github.com/github/ruby.git
fix object address test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
2f2143a2be
Коммит
788181a4eb
|
@ -536,7 +536,7 @@ if __FILE__ == $0
|
|||
def test_object
|
||||
a = Object.new
|
||||
a.instance_eval {@a = a}
|
||||
hex = '0x' + ('%x'%a.id)
|
||||
hex = '0x' + ('%x' % (a.id * 2))
|
||||
assert_equal("#<Object:#{hex} @a=#<Object:#{hex} ...>>\n", PP.pp(a, 79, ''))
|
||||
end
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче