From 632e10cad3935ad0152204d21b80b90c4906e753 Mon Sep 17 00:00:00 2001 From: kou Date: Thu, 19 Apr 2018 20:51:07 +0000 Subject: [PATCH] rexml: Fix wrong assertion test/rexml/xpath/test_base.rb: Use constant value for the expected value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rexml/xpath/test_base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/rexml/xpath/test_base.rb b/test/rexml/xpath/test_base.rb index 7fb7e3f99a..f71be51e2f 100644 --- a/test/rexml/xpath/test_base.rb +++ b/test/rexml/xpath/test_base.rb @@ -1006,7 +1006,7 @@ EOF " 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)