ruby-changes:41146
From: nobu <ko1@a...>
Date: Sun, 20 Dec 2015 20:31:41 +0900 (JST)
Subject: [ruby-changes:41146] nobu:r53219 (trunk): test_cgi_util.rb: fix arguments orders
nobu 2015-12-20 20:31:22 +0900 (Sun, 20 Dec 2015) New Revision: 53219 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=53219 Log: test_cgi_util.rb: fix arguments orders * test/cgi/test_cgi_util.rb: fix arguments orders, expected values should be placed first and then actual results. Modified files: trunk/test/cgi/test_cgi_util.rb Index: test/cgi/test_cgi_util.rb =================================================================== --- test/cgi/test_cgi_util.rb (revision 53218) +++ test/cgi/test_cgi_util.rb (revision 53219) @@ -59,15 +59,15 @@ class CGIUtilTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/cgi/test_cgi_util.rb#L59 end def test_cgi_escapeHTML - assert_equal(CGI::escapeHTML("'&\"><"),"'&"><") + assert_equal("'&"><", CGI::escapeHTML("'&\"><")) end def test_cgi_unescapeHTML - assert_equal(CGI::unescapeHTML("'&"><"),"'&\"><") + assert_equal("'&\"><", CGI::unescapeHTML("'&"><")) end def test_cgi_unescapeHTML_uppercasecharacter - assert_equal(CGI::unescapeHTML("あいう"),"\xE3\x81\x82\xE3\x81\x84\xE3\x81\x86") + assert_equal("\xE3\x81\x82\xE3\x81\x84\xE3\x81\x86", CGI::unescapeHTML("あいう")) end def test_cgi_include_escape @@ -75,11 +75,11 @@ class CGIUtilTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/cgi/test_cgi_util.rb#L75 end def test_cgi_include_escapeHTML - assert_equal(escapeHTML("'&\"><"),"'&"><") + assert_equal("'&"><", escapeHTML("'&\"><")) end def test_cgi_include_h - assert_equal(h("'&\"><"),"'&"><") + assert_equal("'&"><", h("'&\"><")) end def test_cgi_include_unescape @@ -89,7 +89,7 @@ class CGIUtilTest < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/cgi/test_cgi_util.rb#L89 end def test_cgi_include_unescapeHTML - assert_equal(unescapeHTML("'&"><"),"'&\"><") + assert_equal("'&\"><", unescapeHTML("'&"><")) end def test_cgi_escapeElement -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/