diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 08:17:48 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-31 08:17:48 +0000 |
commit | 72ee10b19c0edab36a78c2bdc1870be5220e32ba (patch) | |
tree | 60fdeb3e0f4ba01c1f116b9bc2bb1648631afef3 /test/ruby/test_econv.rb | |
parent | 2d71485ec1898c5c0f43d1c7e0fdb1f1442c9dd8 (diff) | |
download | ruby-72ee10b19c0edab36a78c2bdc1870be5220e32ba.tar.gz |
* transcode.c (make_econv_exception): rename instance variable names
for storing encoding names.
(ecerr_source_encoding_name): method renamed.
(ecerr_destination_encoding_name): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_econv.rb')
-rw-r--r-- | test/ruby/test_econv.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ruby/test_econv.rb b/test/ruby/test_econv.rb index fd7bed5652..c18d7a8e65 100644 --- a/test/ruby/test_econv.rb +++ b/test/ruby/test_econv.rb @@ -455,8 +455,8 @@ class TestEncodingConverter < Test::Unit::TestCase err = assert_raise(Encoding::InvalidByteSequence) { "abc\xa4def".encode("ISO-8859-1", "EUC-JP") } - assert_equal("EUC-JP", err.source_encoding) - assert_equal("UTF-8", err.destination_encoding) + assert_equal("EUC-JP", err.source_encoding_name) + assert_equal("UTF-8", err.destination_encoding_name) assert_equal("\xA4".force_encoding("ASCII-8BIT"), err.error_bytes) assert_equal("d", err.readagain_bytes) assert_equal(false, err.incomplete_input?) @@ -466,8 +466,8 @@ class TestEncodingConverter < Test::Unit::TestCase err = assert_raise(Encoding::InvalidByteSequence) { "abc\xa4".encode("ISO-8859-1", "EUC-JP") } - assert_equal("EUC-JP", err.source_encoding) - assert_equal("UTF-8", err.destination_encoding) + assert_equal("EUC-JP", err.source_encoding_name) + assert_equal("UTF-8", err.destination_encoding_name) assert_equal("\xA4".force_encoding("ASCII-8BIT"), err.error_bytes) assert_equal(nil, err.readagain_bytes) assert_equal(true, err.incomplete_input?) @@ -477,8 +477,8 @@ class TestEncodingConverter < Test::Unit::TestCase err = assert_raise(Encoding::ConversionUndefined) { "abc\xa4\xa2def".encode("ISO-8859-1", "EUC-JP") } - assert_equal("UTF-8", err.source_encoding) - assert_equal("ISO-8859-1", err.destination_encoding) + assert_equal("UTF-8", err.source_encoding_name) + assert_equal("ISO-8859-1", err.destination_encoding_name) assert_equal("\u{3042}", err.error_char) end |