* test/ruby/test_transcode.rb (TestTranscode#test_errors):
String#encode now works without any argument. [ruby-dev:36740] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7a0acc7eee
commit
f71b2c94dc
@ -1,3 +1,8 @@
|
||||
Thu Oct 16 06:20:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* test/ruby/test_transcode.rb (TestTranscode#test_errors):
|
||||
String#encode now works without any argument. [ruby-dev:36740]
|
||||
|
||||
Wed Oct 15 23:11:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/delegate.rb (DelegateClass): restored 1.8 behavior for
|
||||
|
@ -19,8 +19,6 @@ class TestTranscode < Test::Unit::TestCase
|
||||
end
|
||||
|
||||
def test_errors
|
||||
assert_raise(ArgumentError) { 'abc'.encode }
|
||||
assert_raise(ArgumentError) { 'abc'.encode! }
|
||||
assert_raise(Encoding::ConverterNotFoundError) { 'abc'.encode('foo', 'bar') }
|
||||
assert_raise(Encoding::ConverterNotFoundError) { 'abc'.encode!('foo', 'bar') }
|
||||
assert_raise(Encoding::ConverterNotFoundError) { 'abc'.force_encoding('utf-8').encode('foo') }
|
||||
|
Loading…
x
Reference in New Issue
Block a user