summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-04 06:39:25 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-03-04 06:39:25 +0000
commit07e19f72ccda638e119f8f6f34c3cfb2c1ed0e96 (patch)
tree0ce1f50585c548c27f920f989450accf1ba6edc6 /test/ruby
parent01c637380f24f358c8885c6e942e2b4bd910bfdd (diff)
downloadruby-07e19f72ccda638e119f8f6f34c3cfb2c1ed0e96.tar.gz
ruby-07e19f72ccda638e119f8f6f34c3cfb2c1ed0e96.tar.xz
ruby-07e19f72ccda638e119f8f6f34c3cfb2c1ed0e96.zip
fix string interpolation
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10025 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_objectspace.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/ruby/test_objectspace.rb b/test/ruby/test_objectspace.rb
index dab94688e..14d44f0b3 100644
--- a/test/ruby/test_objectspace.rb
+++ b/test/ruby/test_objectspace.rb
@@ -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)