diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-23 15:02:50 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-09-23 15:02:50 +0000 |
commit | e29c3bfb9fca8d0091c3aa07f2dab35159a0bed9 (patch) | |
tree | ac2c8a75185f487f9dee37737757b75854befc60 /test | |
parent | 3a2aca5075ca60dc6863bc15f07bf8e716cd556c (diff) | |
download | ruby-e29c3bfb9fca8d0091c3aa07f2dab35159a0bed9.tar.gz |
test_transcode.rb: base encoding
* test/ruby/test_transcode.rb (TestTranscode#test_pseudo_encoding_inspect):
test for proper base encoding. [ruby-core:57318] [Bug #8940]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43024 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_transcode.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb index e88979a681..db91010c94 100644 --- a/test/ruby/test_transcode.rb +++ b/test/ruby/test_transcode.rb @@ -2068,6 +2068,7 @@ class TestTranscode < Test::Unit::TestCase %w[UTF-32 UTF-16].each do |enc| define_method("test_pseudo_encoding_inspect(#{enc})") do assert_normal_exit("'aaa'.encode('#{enc}').inspect", bug8940) + assert_equal(4, 'aaa'.encode(enc).length, "should count in #{enc} with BOM") end end end |