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

ruby-changes:8644

From: duerst <ko1@a...>
Date: Tue, 11 Nov 2008 14:43:10 +0900 (JST)
Subject: [ruby-changes:8644] Ruby:r20179 (trunk): * test/ruby/test_transcode.rb: unnecessary setup method

duerst	2008-11-11 14:42:49 +0900 (Tue, 11 Nov 2008)

  New Revision: 20179

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

  Log:
    * test/ruby/test_transcode.rb: unnecessary setup method
      (setup_really_needed?) removed

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_transcode.rb

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 20178)
+++ ChangeLog	(revision 20179)
@@ -1,3 +1,8 @@
+Tue Nov 11 14:40:40 2008  Martin Duerst  <duerst@i...>
+
+	* test/ruby/test_transcode.rb: unnecessary setup method
+	  (setup_really_needed?) removed
+
 Tue Nov 11 14:25:25 2008  Martin Duerst  <duerst@i...>
 
 	* enc/trans/single_byte.trans, macgreek-tbl.rb, macroman-tbl.rb,
Index: test/ruby/test_transcode.rb
===================================================================
--- test/ruby/test_transcode.rb	(revision 20178)
+++ test/ruby/test_transcode.rb	(revision 20179)
@@ -3,21 +3,6 @@
 
 require 'test/unit'
 class TestTranscode < Test::Unit::TestCase
-  def setup_really_needed? # trick to create all the necessary encodings
-    all_encodings = [ 'ISO-8859-1', 'ISO-8859-2',
-                      'ISO-8859-3', 'ISO-8859-4',
-                      'ISO-8859-5', 'ISO-8859-6',
-                      'ISO-8859-7', 'ISO-8859-8',
-                      'ISO-8859-9', 'ISO-8859-10',
-                      'ISO-8859-11', 'ISO-8859-13',
-                      'ISO-8859-14', 'ISO-8859-15',
-                      'UTF-16BE'
-                    ]
-    all_encodings.each do |enc|
-      'abc'.encode(enc, 'UTF-8')
-    end
-  end
-
   def test_errors
     assert_raise(Encoding::ConverterNotFoundError) { 'abc'.encode('foo', 'bar') }
     assert_raise(Encoding::ConverterNotFoundError) { 'abc'.encode!('foo', 'bar') }

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

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