diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-12 17:30:07 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-12 17:30:07 +0000 |
commit | 41d3a0148637725fc6078b4bdfadae290ff0d39e (patch) | |
tree | 3a6fb7c25fd178d17d8bb9836f109c23c8eefdab /test/ruby/test_econv.rb | |
parent | 248acf0025f047a731b6d6967382ce9b7675a05e (diff) | |
download | ruby-41d3a0148637725fc6078b4bdfadae290ff0d39e.tar.gz |
* enc/trans/escape.trans: transcoder name renamed to use underscore.
* transcode.c: follow the renaming.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_econv.rb')
-rw-r--r-- | test/ruby/test_econv.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/ruby/test_econv.rb b/test/ruby/test_econv.rb index c1e78e54a7..4ea2475da0 100644 --- a/test/ruby/test_econv.rb +++ b/test/ruby/test_econv.rb @@ -37,7 +37,7 @@ class TestEncodingConverter < Test::Unit::TestCase assert_nil(Encoding::Converter.asciicompat_encoding("EUC-JP")) assert_nil(Encoding::Converter.asciicompat_encoding("UTF-8")) assert_nil(Encoding::Converter.asciicompat_encoding(Encoding::UTF_8)) - assert_nil(Encoding::Converter.asciicompat_encoding("xml-attr-escaped")) + assert_nil(Encoding::Converter.asciicompat_encoding("xml_attr_escape")) assert_nil(Encoding::Converter.asciicompat_encoding("encoding-not-exist")) end @@ -755,45 +755,45 @@ class TestEncodingConverter < Test::Unit::TestCase end def test_xml_escape_text - ec = Encoding::Converter.new("", "amp-escaped") + ec = Encoding::Converter.new("", "amp_escape") assert_equal('&<>"', ec.convert("&<>\"")) assert_equal('', ec.finish) - ec = Encoding::Converter.new("", "xml-text-escaped") + ec = Encoding::Converter.new("", "xml_text_escape") assert_equal('&<>"', ec.convert("&<>\"")) assert_equal('', ec.finish) end def test_xml_escape_attr_content - ec = Encoding::Converter.new("", "xml-attr-content-escaped") + ec = Encoding::Converter.new("", "xml_attr_content_escape") assert_equal('', ec.finish) - ec = Encoding::Converter.new("", "xml-attr-content-escaped") + ec = Encoding::Converter.new("", "xml_attr_content_escape") assert_equal('', ec.convert("")) assert_equal('', ec.finish) - ec = Encoding::Converter.new("", "xml-attr-content-escaped") + ec = Encoding::Converter.new("", "xml_attr_content_escape") assert_equal('"', ec.convert('"')) assert_equal('', ec.finish) - ec = Encoding::Converter.new("", "xml-attr-content-escaped") + ec = Encoding::Converter.new("", "xml_attr_content_escape") assert_equal('&<>"', ec.convert("&<>\"")) assert_equal('', ec.finish) end def test_xml_escape_attr_quote - ec = Encoding::Converter.new("", "xml-attr-quoted") + ec = Encoding::Converter.new("", "xml_attr_quote") assert_equal('""', ec.finish) - ec = Encoding::Converter.new("", "xml-attr-quoted") + ec = Encoding::Converter.new("", "xml_attr_quote") assert_equal('', ec.convert("")) assert_equal('""', ec.finish) - ec = Encoding::Converter.new("", "xml-attr-quoted") + ec = Encoding::Converter.new("", "xml_attr_quote") assert_equal('""', ec.convert('"')) assert_equal('"', ec.finish) - ec = Encoding::Converter.new("", "xml-attr-quoted") + ec = Encoding::Converter.new("", "xml_attr_quote") assert_equal('"&<>"', ec.convert("&<>\"")) assert_equal('"', ec.finish) end |