1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test: remove or replace trailing spaces

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-12-07 05:02:18 +00:00
parent 97de2b36e9
commit 13d3f023c6
6 changed files with 23 additions and 23 deletions

View file

@ -240,7 +240,7 @@ end%>
%%%
EOS
ans = <<EOS
%
%\s
% %%><%0
% %%><%1
%%
@ -328,7 +328,7 @@ EOS
def test_keep_lineno
src = <<EOS
Hello,
Hello,\s
% x = "World"
<%= x%>
% raise("lineno")
@ -344,21 +344,21 @@ EOS
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 @@ EOS
ans = <<EOS
%>
Hello,
Hello,\s
World%>
@ -374,7 +374,7 @@ EOS
assert_equal(ans, ERB.new(src).result)
src = <<EOS
Hello,
Hello,\s
<% x = "World%%>
"%>
<%= x%>
@ -409,7 +409,7 @@ EOS
% y = 'Hello'
<%- x = "World%%>
"-%>
<%= x %><%- x = nil -%>
<%= x %><%- x = nil -%>\s
<% raise("lineno") %>
EOS
@ -445,19 +445,19 @@ NotSkip <%- y = x -%> NotSkip
<%- 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)

View file

@ -91,11 +91,11 @@ EOF
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

View file

@ -35,7 +35,7 @@ module Psych
def test_float_references
data = Psych.load <<-eoyml
---
---\s
- &name 1.2
- *name
eoyml
@ -56,7 +56,7 @@ module Psych
def test_regexp_references
data = Psych.load <<-eoyml
---
---\s
- &name !ruby/regexp /pattern/i
- *name
eoyml

View file

@ -70,7 +70,7 @@ call-seq:
comment = RDoc::Comment.new <<-COMMENT, @top_level
# call-seq:
# bla => true or false
#
#\s
# moar comment
COMMENT

View file

@ -1176,34 +1176,34 @@ EOL
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>

View file

@ -567,7 +567,7 @@ class TestThread < Test::Unit::TestCase
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