ruby-changes:26197
From: nobu <ko1@a...>
Date: Fri, 7 Dec 2012 14:02:33 +0900 (JST)
Subject: [ruby-changes:26197] nobu:r38253 (trunk): test: remove or replace trailing spaces
nobu 2012-12-07 14:02:18 +0900 (Fri, 07 Dec 2012) New Revision: 38253 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38253 Log: test: remove or replace trailing spaces Modified files: trunk/test/erb/test_erb.rb trunk/test/net/imap/test_imap_response_parser.rb trunk/test/psych/test_object_references.rb trunk/test/rdoc/test_rdoc_comment.rb trunk/test/rexml/test_core.rb trunk/test/ruby/test_thread.rb Index: test/ruby/test_thread.rb =================================================================== --- test/ruby/test_thread.rb (revision 38252) +++ test/ruby/test_thread.rb (revision 38253) @@ -567,7 +567,7 @@ def for_test_async_interrupt_with_return Thread.async_interrupt_timing(Object => :defer){ Thread.current.raise RuntimeError.new("have to be rescured") - return + return } rescue end Index: test/rexml/test_core.rb =================================================================== --- test/rexml/test_core.rb (revision 38252) +++ test/rexml/test_core.rb (revision 38253) @@ -1176,34 +1176,34 @@ element0 element0 element0 - element0 + element0\s <element1> element1 element1 element1 element1 - element1 + element1\s <element2> element2 element2 element2 element2 - element2 + element2\s <element3> element3 element3 element3 element3 - element3 + element3\s <element4> element4 element4 element4 element4 element4 - + \s <element5> - element5 element5 element5 element5 element5 + element5 element5 element5 element5 element5\s </element5> </element4> </element3> Index: test/erb/test_erb.rb =================================================================== --- test/erb/test_erb.rb (revision 38252) +++ test/erb/test_erb.rb (revision 38253) @@ -240,7 +240,7 @@ %%% EOS ans = <<EOS -% +%\s % %%><%0 % %%><%1 %% @@ -328,7 +328,7 @@ def test_keep_lineno src = <<EOS -Hello, +Hello,\s % x = "World" <%= x%> % raise("lineno") @@ -344,21 +344,21 @@ src = <<EOS %> -Hello, +Hello,\s <% x = "World%%> "%> <%= x%> EOS ans = <<EOS -%>Hello, +%>Hello,\s World%> EOS assert_equal(ans, ERB.new(src, nil, '>').result) ans = <<EOS %> -Hello, +Hello,\s World%> EOS @@ -366,7 +366,7 @@ ans = <<EOS %> -Hello, +Hello,\s World%> @@ -374,7 +374,7 @@ assert_equal(ans, ERB.new(src).result) src = <<EOS -Hello, +Hello,\s <% x = "World%%> "%> <%= x%> @@ -409,7 +409,7 @@ % y = 'Hello' <%- x = "World%%> "-%> -<%= x %><%- x = nil -%> +<%= x %><%- x = nil -%>\s <% raise("lineno") %> EOS @@ -445,19 +445,19 @@ <%- up = w.upcase -%> * <%= up %> <%- end -%> -KeepNewLine <%- z = nil -%> +KeepNewLine <%- z = nil -%>\s EOS ans = <<EOS NotSkip NotSkip * HELLO * WORLD - NotSkip + NotSkip\s * hello * HELLO * world * WORLD -KeepNewLine +KeepNewLine \s EOS assert_equal(ans, ERB.new(src, nil, '-').result) assert_equal(ans, ERB.new(src, nil, '-%').result) Index: test/rdoc/test_rdoc_comment.rb =================================================================== --- test/rdoc/test_rdoc_comment.rb (revision 38252) +++ test/rdoc/test_rdoc_comment.rb (revision 38253) @@ -70,7 +70,7 @@ comment = RDoc::Comment.new <<-COMMENT, @top_level # call-seq: # bla => true or false -# +#\s # moar comment COMMENT Index: test/psych/test_object_references.rb =================================================================== --- test/psych/test_object_references.rb (revision 38252) +++ test/psych/test_object_references.rb (revision 38253) @@ -35,7 +35,7 @@ def test_float_references data = Psych.load <<-eoyml ---- +---\s - &name 1.2 - *name eoyml @@ -56,7 +56,7 @@ def test_regexp_references data = Psych.load <<-eoyml ---- +---\s - &name !ruby/regexp /pattern/i - *name eoyml Index: test/net/imap/test_imap_response_parser.rb =================================================================== --- test/net/imap/test_imap_response_parser.rb (revision 38252) +++ test/net/imap/test_imap_response_parser.rb (revision 38253) @@ -91,11 +91,11 @@ def test_search_response_of_yahoo parser = Net::IMAP::ResponseParser.new response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint) -* SEARCH 1 +* SEARCH 1\s EOF assert_equal [1], response.data response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint) -* SEARCH 1 2 3 +* SEARCH 1 2 3\s EOF assert_equal [1, 2, 3], response.data end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/