mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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
This commit is contained in:
parent
2d9f20e1cf
commit
5551871086
195 changed files with 1631 additions and 1258 deletions
|
@ -1,5 +1,5 @@
|
|||
# coding: us-ascii
|
||||
# frozen_string_literal: false
|
||||
# frozen_string_literal: true
|
||||
|
||||
require 'rdoc/test_case'
|
||||
|
||||
|
@ -207,7 +207,7 @@ lines, one line per element. Lines are assumed to be separated by _sep_.
|
|||
end
|
||||
|
||||
def test_force_encoding
|
||||
@comment.force_encoding Encoding::UTF_8
|
||||
@comment = RDoc::Encoding.change_encoding @comment, Encoding::UTF_8
|
||||
|
||||
assert_equal Encoding::UTF_8, @comment.text.encoding
|
||||
end
|
||||
|
@ -347,7 +347,7 @@ lines, one line per element. Lines are assumed to be separated by _sep_.
|
|||
# this is private
|
||||
EOS
|
||||
|
||||
comment.force_encoding Encoding::IBM437
|
||||
comment = RDoc::Encoding.change_encoding comment, Encoding::IBM437
|
||||
|
||||
comment.remove_private
|
||||
|
||||
|
@ -471,7 +471,7 @@ lines, one line per element. Lines are assumed to be separated by _sep_.
|
|||
# This is text again.
|
||||
EOS
|
||||
|
||||
comment.force_encoding Encoding::IBM437
|
||||
comment = RDoc::Encoding.change_encoding comment, Encoding::IBM437
|
||||
|
||||
comment.remove_private
|
||||
|
||||
|
@ -486,7 +486,7 @@ lines, one line per element. Lines are assumed to be separated by _sep_.
|
|||
# This is text again.
|
||||
EOS
|
||||
|
||||
comment.force_encoding Encoding::IBM437
|
||||
comment = RDoc::Encoding.change_encoding comment, Encoding::IBM437
|
||||
|
||||
comment.remove_private
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue