diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | test/ruby/test_transcode.rb | 2 |
2 files changed, 5 insertions, 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 diff --git a/test/ruby/test_transcode.rb b/test/ruby/test_transcode.rb index 3ee1ff380b..d46a9ce322 100644 --- a/test/ruby/test_transcode.rb +++ b/test/ruby/test_transcode.rb @@ -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') } |