summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_transcode.rb
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-11 11:02:53 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-11 11:02:53 +0000
commite5fb8c085373e707a2c1d745a05e6495b7986371 (patch)
treece1d9da640142ecf1b2fe8885121d9fed09bf19f /test/ruby/test_transcode.rb
parent2f20652bd8aaaec495e8ef5a8e72d6b189420c17 (diff)
downloadruby-e5fb8c085373e707a2c1d745a05e6495b7986371.tar.gz
ruby-e5fb8c085373e707a2c1d745a05e6495b7986371.tar.xz
ruby-e5fb8c085373e707a2c1d745a05e6495b7986371.zip
merges r20179 from trunk into ruby_1_9_1.
* test/ruby/test_transcode.rb: unnecessary setup method (setup_really_needed?) removed git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@20208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_transcode.rb')
-rw-r--r--test/ruby/test_transcode.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb
index 6e2bc6ce6..1d16d9842 100644
--- a/test/ruby/test_transcode.rb
+++ b/test/ruby/test_transcode.rb
@@ -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') }