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

fix string interpolation

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2006-03-04 06:39:25 +00:00
parent 989fb4fec7
commit 5172b5a848

View file

@ -5,12 +5,13 @@ class TestObjectSpace < Test::Unit::TestCase
/:(\d+)/ =~ caller[0]
file = $`
line = $1.to_i
eval <<"End", binding, file, line
code = <<"End"
define_method("test_id2ref_#{line}") {\
o = ObjectSpace._id2ref(obj.object_id);\
assert_equal(obj, o, "didn't round trip: #{obj.inspect}");\
assert_equal(obj, o, "didn't round trip: \#{obj.inspect}");\
}
End
eval code, binding, file, line
end
deftest_id2ref(-0x4000000000000001)