mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add rdoc and test of Encoding#replicate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
190507ce0c
commit
07f81c06ca
2 changed files with 14 additions and 0 deletions
|
@ -51,6 +51,11 @@ class TestEncoding < Test::Unit::TestCase
|
|||
end
|
||||
end
|
||||
|
||||
def test_replicate
|
||||
assert(Encoding::UTF_8.replicate('UTF-8-ANOTHER'))
|
||||
assert(Encoding::ISO_2022_JP.replicate('ISO-2022-JP-ANOTHER'))
|
||||
end
|
||||
|
||||
def test_dummy_p
|
||||
assert_equal(true, Encoding::ISO_2022_JP.dummy?)
|
||||
assert_equal(false, Encoding::UTF_8.dummy?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue