#!/usr/local/bin/perl -w use lib qw(t/lib); use strict; # Due to a bug in older versions of MakeMaker & Test::Harness, we must # ensure the blib's are in @INC, else we might use the core CGI.pm use lib qw(blib/lib blib/arch); use Test::More tests => 45; use CGI qw(:standard *h1 *h2 *h3 *h4 *h5 *h6 *table *ul *li *ol *td *b *i *u *div); is(start_h1(), "

", "start_h1"); # TEST is(start_h1({class => 'hello'}), "

", "start_h1 with param"); # TEST is(end_h1(), "

", "end_h1"); # TEST is(start_h2(), "

", "start_h2"); # TEST is(start_h2({class => 'hello'}), "

", "start_h2 with param"); # TEST is(end_h2(), "

", "end_h2"); # TEST is(start_h3(), "

", "start_h3"); # TEST is(start_h3({class => 'hello'}), "

", "start_h3 with param"); # TEST is(end_h3(), "

", "end_h3"); # TEST is(start_h4(), "

", "start_h4"); # TEST is(start_h4({class => 'hello'}), "

", "start_h4 with param"); # TEST is(end_h4(), "

", "end_h4"); # TEST is(start_h5(), "
", "start_h5"); # TEST is(start_h5({class => 'hello'}), "
", "start_h5 with param"); # TEST is(end_h5(), "
", "end_h5"); # TEST is(start_h6(), "
", "start_h6"); # TEST is(start_h6({class => 'hello'}), "
", "start_h6 with param"); # TEST is(end_h6(), "
", "end_h6"); # TEST is(start_table(), "", "start_table"); # TEST is(start_table({class => 'hello'}), "
", "start_table with param"); # TEST is(end_table(), "
", "end_table"); # TEST is(start_ul(), "