mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add a test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
08fa9bad5b
commit
8bc2fb5ba4
1 changed files with 5 additions and 0 deletions
|
@ -29,4 +29,9 @@ class CGIUtilTest < Test::Unit::TestCase
|
|||
assert_equal(@str1.encoding, CGI::unescape('%26%3C%3E%22+%E3%82%86%E3%82%93%E3%82%86%E3%82%93').encoding) if RUBY_VERSION>="1.9"
|
||||
end
|
||||
|
||||
def test_cgi_pretty
|
||||
assert_equal("<HTML>\n <BODY>\n </BODY>\n</HTML>\n",CGI::pretty("<HTML><BODY></BODY></HTML>"))
|
||||
assert_equal("<HTML>\n\t<BODY>\n\t</BODY>\n</HTML>\n",CGI::pretty("<HTML><BODY></BODY></HTML>","\t"))
|
||||
end
|
||||
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue