Permalink
Browse files

fix string interpolation

git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 6816ffe commit 5272300bd1020b27405377b17cbe728c47efa648 @akr akr committed Mar 4, 2006
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/ruby/test_objectspace.rb
@@ -5,12 +5,13 @@ def self.deftest_id2ref(obj)
/:(\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)

0 comments on commit 5272300

Please sign in to comment.