[前][次][番号順一覧][スレッド一覧]

ruby-changes:36026

From: kou <ko1@a...>
Date: Thu, 23 Oct 2014 16:26:47 +0900 (JST)
Subject: [ruby-changes:36026] kou:r48107 (trunk): * test/rexml/test_encoding.rb

kou	2014-10-23 16:26:39 +0900 (Thu, 23 Oct 2014)

  New Revision: 48107

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=48107

  Log:
    * test/rexml/test_encoding.rb
      (REXMLTests::EncodingTester#test_ticket_110): Fix expected and
      actual order.
      Patch by NAKAMURA Usaku. Thanks!!!

  Modified files:
    trunk/ChangeLog
    trunk/test/rexml/test_encoding.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 48106)
+++ ChangeLog	(revision 48107)
@@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Oct 23 16:18:11 2014  Kouhei Sutou  <kou@c...>
+
+	* test/rexml/test_encoding.rb
+	  (REXMLTests::EncodingTester#test_ticket_110): Fix expected and
+	  actual order.
+	  Patch by NAKAMURA Usaku. Thanks!!!
+
 Thu Oct 23 10:47:16 2014  Eric Wong  <e@8...>
 
 	* insns.def (getlocal,setlocal): add comment to def/opt_operand.def
Index: test/rexml/test_encoding.rb
===================================================================
--- test/rexml/test_encoding.rb	(revision 48106)
+++ test/rexml/test_encoding.rb	(revision 48107)
@@ -91,7 +91,7 @@ module REXMLTests https://github.com/ruby/ruby/blob/trunk/test/rexml/test_encoding.rb#L91
       utf16 = File.open(fixture_path("ticket_110_utf16.xml")) do |f|
         REXML::Document.new(f)
       end
-      assert_equal(utf16.encoding, "UTF-16")
+      assert_equal("UTF-16", utf16.encoding)
       assert( utf16[0].kind_of?(REXML::XMLDecl))
     end
   end

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]