summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/pp.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pp.rb b/lib/pp.rb
index aec54afa56..19a2b9d48a 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -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