diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-27 10:45:24 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-11-27 10:45:24 +0000 |
commit | 55518710865bd7258422807524403c91347519a2 (patch) | |
tree | 4146c423ab0c55ed35d9d860e64d7e3a7e2a9efb /test/rdoc/test_rdoc_markup_to_html.rb | |
parent | 2d9f20e1cfdc7532a8acef4da9b8b7a788c4e99a (diff) |
Merge rdoc-6.0.0.beta4 from upstream.
It version applied `frozen_string_literal: true`
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/rdoc/test_rdoc_markup_to_html.rb')
-rw-r--r-- | test/rdoc/test_rdoc_markup_to_html.rb | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/rdoc/test_rdoc_markup_to_html.rb b/test/rdoc/test_rdoc_markup_to_html.rb index b5edeb04d2..fa5828a007 100644 --- a/test/rdoc/test_rdoc_markup_to_html.rb +++ b/test/rdoc/test_rdoc_markup_to_html.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true require 'rdoc/test_case' class TestRDocMarkupToHtml < RDoc::Markup::FormatterTestCase @@ -452,9 +452,6 @@ class TestRDocMarkupToHtml < RDoc::Markup::FormatterTestCase end def test_accept_verbatim_nl_after_backslash - # TODO: Remove "skip" after the issue is resolved: https://github.com/jruby/jruby/issues/4787 - # This "skip" is for strange behavior around escaped newline on JRuby - skip if defined? JRUBY_VERSION verb = @RM::Verbatim.new("a = 1 if first_flag_var and \\\n", " this_is_flag_var\n") @to.start_accepting @@ -520,7 +517,7 @@ end expected = <<-'EXPECTED' -<pre class="ruby"><span class="ruby-keyword">def</span> <span class="ruby-identifier">foo</span> +<pre class="ruby"><span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">foo</span> [ <span class="ruby-string">'\\'</span>, <span class="ruby-string">'\''</span>, @@ -540,7 +537,7 @@ end <span class="ruby-regexp">/#{}/</span> ] <span class="ruby-keyword">end</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">bar</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bar</span> <span class="ruby-keyword">end</span> </pre> EXPECTED @@ -570,7 +567,7 @@ end expected = <<-'EXPECTED' -<pre class="ruby"><span class="ruby-keyword">def</span> <span class="ruby-identifier">foo</span> +<pre class="ruby"><span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">foo</span> [ <span class="ruby-string">`\\`</span>, <span class="ruby-string">`\'\"\``</span>, @@ -580,7 +577,7 @@ end <span class="ruby-node">`#{}`</span> ] <span class="ruby-keyword">end</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">bar</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">bar</span> <span class="ruby-keyword">end</span> </pre> EXPECTED @@ -622,7 +619,7 @@ end %w[| ^ & <=> == === =~ > >= < <= << >> + - * / % ** ~ +@ -@ [] []= ` ! != !~].each do |html_escaped_op| expected += <<-EXPECTED -<span class="ruby-keyword">def</span> <span class="ruby-identifier">#{html_escaped_op}</span> +<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">#{html_escaped_op}</span> <span class="ruby-keyword">end</span> EXPECTED end |