[前][次][番号順一覧][スレッド一覧]

ruby-changes:4229

From: ko1@a...
Date: Thu, 6 Mar 2008 17:04:24 +0900 (JST)
Subject: [ruby-changes:4229] akr - Ruby:r15719 (trunk): add a test.

akr	2008-03-06 17:04:18 +0900 (Thu, 06 Mar 2008)

  New Revision: 15719

  Modified files:
    trunk/test/ruby/test_utf16.rb

  Log:
    add a test.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_utf16.rb?r1=15719&r2=15718&diff_format=u

Index: test/ruby/test_utf16.rb
===================================================================
--- test/ruby/test_utf16.rb	(revision 15718)
+++ test/ruby/test_utf16.rb	(revision 15719)
@@ -113,6 +113,11 @@
     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")

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]