summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-25 15:26:54 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-25 15:26:54 +0000
commitbf86313e3f00c24d783864d1c873e77ee9ba417c (patch)
tree384989c51050296323dc2b45400fc54b393daaa9 /test/ruby
parentd48d116e0282242a1b70cc9bdf3ae29304660f88 (diff)
downloadruby-bf86313e3f00c24d783864d1c873e77ee9ba417c.tar.gz
ruby-bf86313e3f00c24d783864d1c873e77ee9ba417c.tar.xz
ruby-bf86313e3f00c24d783864d1c873e77ee9ba417c.zip
* transcode.c (make_econv_exception): show readagain part for invalid
byte sequence exception. store the part as an instance variable. (ecerr_readagain_bytes): new method to access the readagain part. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18850 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_econv.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_econv.rb b/test/ruby/test_econv.rb
index 32ac4ca93..a9724d5d6 100644
--- a/test/ruby/test_econv.rb
+++ b/test/ruby/test_econv.rb
@@ -425,6 +425,7 @@ class TestEncodingConverter < Test::Unit::TestCase
assert_equal("EUC-JP", err.source_encoding)
assert_equal("UTF-8", err.destination_encoding)
assert_equal("\xA4".force_encoding("ASCII-8BIT"), err.error_bytes)
+ assert_equal("d", err.readagain_bytes)
end
def test_exc_undef