Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

test: remove or replace trailing spaces

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38253 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit 13d3f023c6db44ffafeb5845516086b6b3f44d39 1 parent 97de2b3
@nobu nobu authored
View
22 test/erb/test_erb.rb
@@ -240,7 +240,7 @@ def test_percent
%%%
EOS
ans = <<EOS
-%
+%\s
% %%><%0
% %%><%1
%%
@@ -328,7 +328,7 @@ def test_escape
def test_keep_lineno
src = <<EOS
-Hello,
+Hello,\s
% x = "World"
<%= x%>
% raise("lineno")
@@ -344,21 +344,21 @@ def test_keep_lineno
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 @@ def test_keep_lineno
ans = <<EOS
%>
-Hello,
+Hello,\s
World%>
@@ -374,7 +374,7 @@ def test_keep_lineno
assert_equal(ans, ERB.new(src).result)
src = <<EOS
-Hello,
+Hello,\s
<% x = "World%%>
"%>
<%= x%>
@@ -409,7 +409,7 @@ def test_keep_lineno
% y = 'Hello'
<%- x = "World%%>
"-%>
-<%= x %><%- x = nil -%>
+<%= x %><%- x = nil -%>\s
<% raise("lineno") %>
EOS
@@ -445,19 +445,19 @@ def test_explicit
<%- 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
4 test/net/imap/test_imap_response_parser.rb
@@ -91,11 +91,11 @@ def test_search_response
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
4 test/psych/test_object_references.rb
@@ -35,7 +35,7 @@ def assert_reference_trip obj
def test_float_references
data = Psych.load <<-eoyml
----
+---\s
- &name 1.2
- *name
eoyml
@@ -56,7 +56,7 @@ def test_binary_references
def test_regexp_references
data = Psych.load <<-eoyml
----
+---\s
- &name !ruby/regexp /pattern/i
- *name
eoyml
View
2  test/rdoc/test_rdoc_comment.rb
@@ -70,7 +70,7 @@ def test_extract_call_seq_commented
comment = RDoc::Comment.new <<-COMMENT, @top_level
# call-seq:
# bla => true or false
-#
+#\s
# moar comment
COMMENT
View
12 test/rexml/test_core.rb
@@ -1176,34 +1176,34 @@ def test_pretty_format_deep_indent
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
2  test/ruby/test_thread.rb
@@ -567,7 +567,7 @@ def test_async_interrupt_timing_invalid_argument
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
Please sign in to comment.
Something went wrong with that request. Please try again.