From 8bc2fb5ba4c20437a6f4929163769fdc37a89e8b Mon Sep 17 00:00:00 2001 From: xibbar Date: Thu, 30 Jul 2009 07:39:09 +0000 Subject: add a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24319 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/cgi/test_cgi_util.rb | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3