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

ruby-changes:30953

From: nobu <ko1@a...>
Date: Tue, 24 Sep 2013 16:43:03 +0900 (JST)
Subject: [ruby-changes:30953] nobu:r43032 (trunk): string/test_ellipsize.rb: remove non-sense tests

nobu	2013-09-24 16:42:58 +0900 (Tue, 24 Sep 2013)

  New Revision: 43032

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43032

  Log:
    string/test_ellipsize.rb: remove non-sense tests
    
    * test/-ext-/string/test_ellipsize.rb (Test_StringEllipsize#test_nonascii):
      rb_str_ellipsize() does not support BOM.

  Modified files:
    trunk/test/-ext-/string/test_ellipsize.rb
Index: test/-ext-/string/test_ellipsize.rb
===================================================================
--- test/-ext-/string/test_ellipsize.rb	(revision 43031)
+++ test/-ext-/string/test_ellipsize.rb	(revision 43032)
@@ -34,6 +34,7 @@ class Test_StringEllipsize < Test::Unit: https://github.com/ruby/ruby/blob/trunk/test/-ext-/string/test_ellipsize.rb#L34
     a = "\u3042"
     encs = Encoding.list.each do |enc|
       next if enc.dummy?
+      next if enc == Encoding::UTF_16 or enc == Encoding::UTF_32
       begin
         s = a.encode(enc)
         e = "...".encode(enc)

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

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