diff --git a/test/cgi/test_cgi_util.rb b/test/cgi/test_cgi_util.rb index ec0744ded4..3a891d6171 100644 --- a/test/cgi/test_cgi_util.rb +++ b/test/cgi/test_cgi_util.rb @@ -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("\n \n \n\n",CGI::pretty("")) + assert_equal("\n\t\n\t\n\n",CGI::pretty("","\t")) + end + end