mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 16:44:01 +02:00
12 lines
350 B
Ruby
12 lines
350 B
Ruby
# frozen_string_literal: true
|
|
require 'test/unit'
|
|
require 'cgi/util'
|
|
|
|
class CGIUtilTest < Test::Unit::TestCase
|
|
|
|
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
|