mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/marshaltestlib.rb: eval(sym) -> eval(sym.to_s)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
dd4d9d63f0
commit
86846f0ee5
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Feb 8 22:02:14 2007 Koichi Sasada <ko1@atdot.net>
|
||||
|
||||
* test/ruby/marshaltestlib.rb: eval(sym) -> eval(sym.to_s)
|
||||
|
||||
Thu Feb 8 21:35:16 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
|
||||
|
||||
* test/win32ole/test_propertyputref.rb (setup): fix typo.
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue