summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-06 09:48:32 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-06 09:48:32 +0000
commitf10af82d259687e6e96a97ebdacfdbda15fc5b2e (patch)
tree51ed3533ad1e1446e2e3066abf04827e026bd26d /test
parent987ec6b78778bf8c7fb0ec0eb1c0dc80bfda0d6a (diff)
* transcode.c (str_transcode0): check ECONV_HTML_TEXT_ENCODER and
ECONV_HTML_ATTR_ENCODER. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_econv.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_econv.rb b/test/ruby/test_econv.rb
index 3f82d2742c..2fcc6ab786 100644
--- a/test/ruby/test_econv.rb
+++ b/test/ruby/test_econv.rb
@@ -774,5 +774,8 @@ class TestEncodingConverter < Test::Unit::TestCase
"&\u3046\u2665&\"'".encode("iso-2022-jp", html: :text))
assert_equal("\"&amp;\e$B$&\e(B&#x2661;&amp;&quot;'\"".force_encoding("iso-2022-jp"),
"&\u3046\u2661&\"'".encode("iso-2022-jp", html: :attr))
+
+ assert_equal("&amp;\u3046\u2661&amp;\"'".force_encoding("utf-8"),
+ "&\u3046\u2661&\"'".encode("utf-8", html: :text))
end
end