diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-08 13:03:54 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-08 13:03:54 +0000 |
commit | aa44f2b3f199af255013a858affbbb887e2d2f29 (patch) | |
tree | 436cca83c2cdc817805dfca2ac29e2b30edda151 /test/ruby/marshaltestlib.rb | |
parent | e9f06513dcdc7c7a2261d7b955e090b4dbb596d2 (diff) | |
download | ruby-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.rb | 4 |
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) |