1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add a test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15719 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-03-06 08:04:18 +00:00
parent 7b8d61c2ed
commit fe2a671fdb

View file

@ -113,6 +113,11 @@ EOT
assert_equal(s.encoding, s.intern.to_s.encoding, "#{encdump s}.intern.to_s.encoding") assert_equal(s.encoding, s.intern.to_s.encoding, "#{encdump s}.intern.to_s.encoding")
end end
def test_sym_eq
s = "aa".force_encoding("utf-16le")
assert(s.intern != :aa, "#{encdump s}.intern != :aa")
end
def test_compatible def test_compatible
s1 = "aa".force_encoding("utf-16be") s1 = "aa".force_encoding("utf-16be")
s2 = "z".force_encoding("us-ascii") s2 = "z".force_encoding("us-ascii")