ruby-changes:50996
From: kou <ko1@a...>
Date: Fri, 20 Apr 2018 05:51:11 +0900 (JST)
Subject: [ruby-changes:50996] kou:r63203 (trunk): rexml: Fix wrong assertion
kou 2018-04-20 05:51:07 +0900 (Fri, 20 Apr 2018) New Revision: 63203 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63203 Log: rexml: Fix wrong assertion test/rexml/xpath/test_base.rb: Use constant value for the expected value. Modified files: trunk/test/rexml/xpath/test_base.rb Index: test/rexml/xpath/test_base.rb =================================================================== --- test/rexml/xpath/test_base.rb (revision 63202) +++ test/rexml/xpath/test_base.rb (revision 63203) @@ -1006,7 +1006,7 @@ EOF https://github.com/ruby/ruby/blob/trunk/test/rexml/xpath/test_base.rb#L1006 </a>" d = Document.new(data) res = d.elements.to_a( "//c" ).collect {|e| e.attributes['id'].to_i} - assert_equal( res, res.sort ) + assert_equal((1..12).to_a, res) end def ticket_61_fixture(doc, xpath) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/