diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-06 08:04:18 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-03-06 08:04:18 +0000 |
commit | fe2a671fdb1333914a2b751fefc6191c2c3c28e9 (patch) | |
tree | a68b8ccf290e83987bb2dd90e53364435d531346 /test/ruby/test_utf16.rb | |
parent | 7b8d61c2edfa4f815066a2a1a993d157ce41a553 (diff) |
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_utf16.rb')
-rw-r--r-- | test/ruby/test_utf16.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_utf16.rb b/test/ruby/test_utf16.rb index 91a693295a..358ae0bf10 100644 --- a/test/ruby/test_utf16.rb +++ b/test/ruby/test_utf16.rb @@ -113,6 +113,11 @@ EOT assert_equal(s.encoding, s.intern.to_s.encoding, "#{encdump s}.intern.to_s.encoding") end + def test_sym_eq + s = "aa".force_encoding("utf-16le") + assert(s.intern != :aa, "#{encdump s}.intern != :aa") + end + def test_compatible s1 = "aa".force_encoding("utf-16be") s2 = "z".force_encoding("us-ascii") |