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 | 3106b96ac8b5484e3501ad3575ecb649baef00ce (patch) | |
tree | c0d3b222b1215367ef4346c5559c06ebae5601cb /test/ruby/test_m17n.rb | |
parent | f909b891ba459ccecd2c6934154e605a115cefdc (diff) | |
download | ruby-3106b96ac8b5484e3501ad3575ecb649baef00ce.tar.gz |
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_m17n.rb')
-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 4e4e91e12c..6cffcdd4f1 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})") |