summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-12 16:35:10 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-12-12 16:35:10 +0000
commit61628104232d87392615e02bb87906754b7b4c3d (patch)
treef1d02a17b15341237c9dbf80e84a44296b802edc /test
parentc12390bdc934bd7b501925e0979da7c68208bc25 (diff)
downloadruby-61628104232d87392615e02bb87906754b7b4c3d.tar.gz
ruby-61628104232d87392615e02bb87906754b7b4c3d.tar.xz
ruby-61628104232d87392615e02bb87906754b7b4c3d.zip
Add rdoc and test of Encoding#replicate.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26068 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_encoding.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_encoding.rb b/test/ruby/test_encoding.rb
index 44419242d..600101a59 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?)