summaryrefslogtreecommitdiffstats
path: root/test/ruby/marshaltestlib.rb
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-08 13:03:54 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-08 13:03:54 +0000
commitaa44f2b3f199af255013a858affbbb887e2d2f29 (patch)
tree436cca83c2cdc817805dfca2ac29e2b30edda151 /test/ruby/marshaltestlib.rb
parente9f06513dcdc7c7a2261d7b955e090b4dbb596d2 (diff)
downloadruby-aa44f2b3f199af255013a858affbbb887e2d2f29.tar.gz
ruby-aa44f2b3f199af255013a858affbbb887e2d2f29.tar.xz
ruby-aa44f2b3f199af255013a858affbbb887e2d2f29.zip
* test/ruby/marshaltestlib.rb: eval(sym) -> eval(sym.to_s)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/marshaltestlib.rb')
-rw-r--r--test/ruby/marshaltestlib.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/marshaltestlib.rb b/test/ruby/marshaltestlib.rb
index 891f43b1f..f334945c8 100644
--- a/test/ruby/marshaltestlib.rb
+++ b/test/ruby/marshaltestlib.rb
@@ -29,8 +29,8 @@ module MarshalTestLib
iv1 = o1.instance_variables.sort
iv2 = o2.instance_variables.sort
assert_equal(iv1, iv2)
- val1 = iv1.map {|var| o1.instance_eval {eval var}}
- val2 = iv1.map {|var| o2.instance_eval {eval var}}
+ val1 = iv1.map {|var| o1.instance_eval {eval var.to_s}}
+ val2 = iv1.map {|var| o2.instance_eval {eval var.to_s}}
assert_equal(val1, val2, msg)
if block_given?
assert_equal(yield(o1), yield(o2), msg)