mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/erb/test_erb.rb: reverted space sensitive test results.
* test/rdoc/test_rdoc_parser_c.rb: ditto. * test/rdoc/test_rdoc_ri_default_display.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
888d294784
commit
882900d2d4
4 changed files with 26 additions and 18 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
Sat Mar 7 12:31:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/erb/test_erb.rb: reverted space sensitive test results.
|
||||||
|
|
||||||
|
* test/rdoc/test_rdoc_parser_c.rb: ditto.
|
||||||
|
|
||||||
|
* test/rdoc/test_rdoc_ri_default_display.rb: ditto.
|
||||||
|
|
||||||
Fri Mar 6 23:35:59 2009 Tanaka Akira <akr@fsij.org>
|
Fri Mar 6 23:35:59 2009 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* lib/securerandom.rb (SecureRandom.urlsafe_base64): add optional
|
* lib/securerandom.rb (SecureRandom.urlsafe_base64): add optional
|
||||||
|
|
|
@ -212,7 +212,7 @@ end%>
|
||||||
%%%
|
%%%
|
||||||
EOS
|
EOS
|
||||||
ans = <<EOS
|
ans = <<EOS
|
||||||
%
|
%
|
||||||
% %%><%0
|
% %%><%0
|
||||||
% %%><%1
|
% %%><%1
|
||||||
%%
|
%%
|
||||||
|
@ -234,7 +234,7 @@ EOS
|
||||||
klass.module_eval do
|
klass.module_eval do
|
||||||
def_erb_method('hello_world', erb)
|
def_erb_method('hello_world', erb)
|
||||||
end
|
end
|
||||||
assert(klass.new.respond_to?('hello_world'))
|
assert(klass.new.respond_to?('hello_world'))
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_def_method_without_filename
|
def test_def_method_without_filename
|
||||||
|
@ -300,7 +300,7 @@ EOS
|
||||||
|
|
||||||
def test_keep_lineno
|
def test_keep_lineno
|
||||||
src = <<EOS
|
src = <<EOS
|
||||||
Hello,
|
Hello,
|
||||||
% x = "World"
|
% x = "World"
|
||||||
<%= x%>
|
<%= x%>
|
||||||
% raise("lineno")
|
% raise("lineno")
|
||||||
|
@ -316,21 +316,21 @@ EOS
|
||||||
|
|
||||||
src = <<EOS
|
src = <<EOS
|
||||||
%>
|
%>
|
||||||
Hello,
|
Hello,
|
||||||
<% x = "World%%>
|
<% x = "World%%>
|
||||||
"%>
|
"%>
|
||||||
<%= x%>
|
<%= x%>
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
ans = <<EOS
|
ans = <<EOS
|
||||||
%>Hello,
|
%>Hello,
|
||||||
World%>
|
World%>
|
||||||
EOS
|
EOS
|
||||||
assert_equal(ans, ERB.new(src, nil, '>').result)
|
assert_equal(ans, ERB.new(src, nil, '>').result)
|
||||||
|
|
||||||
ans = <<EOS
|
ans = <<EOS
|
||||||
%>
|
%>
|
||||||
Hello,
|
Hello,
|
||||||
|
|
||||||
World%>
|
World%>
|
||||||
EOS
|
EOS
|
||||||
|
@ -338,7 +338,7 @@ EOS
|
||||||
|
|
||||||
ans = <<EOS
|
ans = <<EOS
|
||||||
%>
|
%>
|
||||||
Hello,
|
Hello,
|
||||||
|
|
||||||
World%>
|
World%>
|
||||||
|
|
||||||
|
@ -346,7 +346,7 @@ EOS
|
||||||
assert_equal(ans, ERB.new(src).result)
|
assert_equal(ans, ERB.new(src).result)
|
||||||
|
|
||||||
src = <<EOS
|
src = <<EOS
|
||||||
Hello,
|
Hello,
|
||||||
<% x = "World%%>
|
<% x = "World%%>
|
||||||
"%>
|
"%>
|
||||||
<%= x%>
|
<%= x%>
|
||||||
|
@ -381,7 +381,7 @@ EOS
|
||||||
% y = 'Hello'
|
% y = 'Hello'
|
||||||
<%- x = "World%%>
|
<%- x = "World%%>
|
||||||
"-%>
|
"-%>
|
||||||
<%= x %><%- x = nil -%>
|
<%= x %><%- x = nil -%>
|
||||||
<% raise("lineno") %>
|
<% raise("lineno") %>
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
|
@ -417,19 +417,19 @@ NotSkip <%- y = x -%> NotSkip
|
||||||
<%- up = w.upcase -%>
|
<%- up = w.upcase -%>
|
||||||
* <%= up %>
|
* <%= up %>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
KeepNewLine <%- z = nil -%>
|
KeepNewLine <%- z = nil -%>
|
||||||
EOS
|
EOS
|
||||||
|
|
||||||
ans = <<EOS
|
ans = <<EOS
|
||||||
NotSkip NotSkip
|
NotSkip NotSkip
|
||||||
* HELLO
|
* HELLO
|
||||||
* WORLD
|
* WORLD
|
||||||
NotSkip
|
NotSkip
|
||||||
* hello
|
* hello
|
||||||
* HELLO
|
* HELLO
|
||||||
* world
|
* world
|
||||||
* WORLD
|
* WORLD
|
||||||
KeepNewLine
|
KeepNewLine
|
||||||
EOS
|
EOS
|
||||||
assert_equal(ans, ERB.new(src, nil, '-').result)
|
assert_equal(ans, ERB.new(src, nil, '-').result)
|
||||||
assert_equal(ans, ERB.new(src, nil, '-%').result)
|
assert_equal(ans, ERB.new(src, nil, '-%').result)
|
||||||
|
|
|
@ -176,11 +176,11 @@ void Init_foo(){
|
||||||
|
|
||||||
comment = <<-EOF.chomp
|
comment = <<-EOF.chomp
|
||||||
|
|
||||||
|
|
||||||
Multiline comment goes here because this comment spans multiple lines.
|
Multiline comment goes here because this comment spans multiple lines.
|
||||||
Multiline comment goes here because this comment spans multiple lines.
|
Multiline comment goes here because this comment spans multiple lines.
|
||||||
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
assert_equal ['MULTILINE', 'INT2FIX(1)', comment], constants.shift
|
assert_equal ['MULTILINE', 'INT2FIX(1)', comment], constants.shift
|
||||||
assert_equal ['MULTILINE_VALUE', '1', comment], constants.shift
|
assert_equal ['MULTILINE_VALUE', '1', comment], constants.shift
|
||||||
|
@ -189,8 +189,8 @@ void Init_foo(){
|
||||||
|
|
||||||
Multiline comment goes here because this comment spans multiple lines.
|
Multiline comment goes here because this comment spans multiple lines.
|
||||||
Multiline comment goes here because this comment spans multiple lines.
|
Multiline comment goes here because this comment spans multiple lines.
|
||||||
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
assert_equal ['MULTILINE_NOT_EMPTY', 'INT2FIX(1)', comment], constants.shift
|
assert_equal ['MULTILINE_NOT_EMPTY', 'INT2FIX(1)', comment], constants.shift
|
||||||
|
|
||||||
|
|
|
@ -169,7 +169,7 @@ Instance method extensions:
|
||||||
------------------------------------------------------- SomeClass::some_method
|
------------------------------------------------------- SomeClass::some_method
|
||||||
SomeClass::some_method(arg1, arg2)
|
SomeClass::some_method(arg1, arg2)
|
||||||
|
|
||||||
From
|
From
|
||||||
------------------------------------------------------------------------------
|
------------------------------------------------------------------------------
|
||||||
[no description]
|
[no description]
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue