Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit 5272300bd1020b27405377b17cbe728c47efa648 1 parent 6816ffe
@akr akr authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/ruby/test_objectspace.rb
View
5 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)
Please sign in to comment.
Something went wrong with that request. Please try again.