diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-12 16:35:10 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-12 16:35:10 +0000 |
commit | 07f81c06ca565a25044276bb10833ab15eacf8e0 (patch) | |
tree | f1d02a17b15341237c9dbf80e84a44296b802edc /test | |
parent | 190507ce0cae7fc6f7f41d1a8bae737abb4c1445 (diff) | |
download | ruby-07f81c06ca565a25044276bb10833ab15eacf8e0.tar.gz |
Add rdoc and test of Encoding#replicate.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_encoding.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_encoding.rb b/test/ruby/test_encoding.rb index 44419242d2..600101a59c 100644 --- a/test/ruby/test_encoding.rb +++ b/test/ruby/test_encoding.rb @@ -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?) |