ruby-changes:27589
From: nobu <ko1@a...>
Date: Sat, 9 Mar 2013 00:26:55 +0900 (JST)
Subject: [ruby-changes:27589] nobu:r39641 (trunk): marshaltestlib.rb: descriptive assertions
nobu 2013-03-09 00:26:05 +0900 (Sat, 09 Mar 2013) New Revision: 39641 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39641 Log: marshaltestlib.rb: descriptive assertions * test/ruby/marshaltestlib.rb (MarshalTestLib#test_string_ivar) (MarshalTestLib#test_string_subclass_cycle): use more descriptive assertions. Modified files: trunk/test/ruby/marshaltestlib.rb Index: test/ruby/marshaltestlib.rb =================================================================== --- test/ruby/marshaltestlib.rb (revision 39640) +++ test/ruby/marshaltestlib.rb (revision 39641) @@ -229,7 +229,7 @@ module MarshalTestLib https://github.com/ruby/ruby/blob/trunk/test/ruby/marshaltestlib.rb#L229 str = MyString.new(10, "b") str.instance_eval { @v = str } marshal_equal(str) { |o| - assert_equal(o.__id__, o.instance_eval { @v }.__id__) + assert_same(o, o.instance_eval { @v }) o.instance_eval { @v } } end @@ -239,7 +239,7 @@ module MarshalTestLib https://github.com/ruby/ruby/blob/trunk/test/ruby/marshaltestlib.rb#L239 o.extend(Mod1) str = MyString.new(o, "c") marshal_equal(str) { |v| - assert(v.instance_eval { @v }.kind_of?(Mod1)) + assert_kind_of(Mod1, v.instance_eval { @v }) } end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/