mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_transcode.rb: unnecessary setup method
(setup_really_needed?) removed git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@20179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
831e804388
commit
0d93d8125e
2 changed files with 5 additions and 15 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Tue Nov 11 14:40:40 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||||
|
|
||||||
|
* test/ruby/test_transcode.rb: unnecessary setup method
|
||||||
|
(setup_really_needed?) removed
|
||||||
|
|
||||||
Tue Nov 11 14:25:25 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
|
Tue Nov 11 14:25:25 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||||
|
|
||||||
* enc/trans/single_byte.trans, macgreek-tbl.rb, macroman-tbl.rb,
|
* enc/trans/single_byte.trans, macgreek-tbl.rb, macroman-tbl.rb,
|
||||||
|
|
|
@ -3,21 +3,6 @@
|
||||||
|
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
class TestTranscode < Test::Unit::TestCase
|
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
|
def test_errors
|
||||||
assert_raise(Encoding::ConverterNotFoundError) { 'abc'.encode('foo', 'bar') }
|
assert_raise(Encoding::ConverterNotFoundError) { 'abc'.encode('foo', 'bar') }
|
||||||
assert_raise(Encoding::ConverterNotFoundError) { 'abc'.encode!('foo', 'bar') }
|
assert_raise(Encoding::ConverterNotFoundError) { 'abc'.encode!('foo', 'bar') }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue