mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
2 changed files with 5 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue