diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-20 02:06:50 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-20 02:06:50 +0000 |
commit | 92c2535c95cb0012bfdd08b5b5e18ea8ccb8c3d9 (patch) | |
tree | c0d3b222b1215367ef4346c5559c06ebae5601cb /test | |
parent | 7b91d83d481ec39841277b7a5dcf959c9be951d2 (diff) | |
download | ruby-92c2535c95cb0012bfdd08b5b5e18ea8ccb8c3d9.tar.gz ruby-92c2535c95cb0012bfdd08b5b5e18ea8ccb8c3d9.tar.xz ruby-92c2535c95cb0012bfdd08b5b5e18ea8ccb8c3d9.zip |
add a test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_m17n.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index 4e4e91e12..6cffcdd4f 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -297,6 +297,10 @@ class TestM17N < Test::Unit::TestCase end def test_utf16 + s1 = "aa".force_encoding("utf-16be") + s2 = "z".force_encoding("us-ascii") + assert_nil(Encoding.compatible?(s1, s2), "Encoding.compatible?(#{encdump s1}, #{encdump s2})") + s1 = "ab".force_encoding("utf-16be") s2 = "b".force_encoding("utf-16be") assert_equal(false, s1.end_with?(s2), "#{encdump s1}.end_with?(#{encdump s2})") |