#!/usr/local/bin/perl -w
use
lib
qw(blib/lib blib/arch)
;
use
CGI
qw(:standard end_h1 end_h2 end_h3 end_h4 end_h5 end_h6 end_table end_ul end_li end_ol end_td end_b end_i end_u end_div)
;
is(start_h1(),
"<h1>"
,
"start_h1"
);
is(start_h1({
class
=>
'hello'
}),
"<h1 class=\"hello\">"
,
"start_h1 with param"
);
is(end_h1(),
"</h1>"
,
"end_h1"
);
is(start_h2(),
"<h2>"
,
"start_h2"
);
is(start_h2({
class
=>
'hello'
}),
"<h2 class=\"hello\">"
,
"start_h2 with param"
);
is(end_h2(),
"</h2>"
,
"end_h2"
);
is(start_h3(),
"<h3>"
,
"start_h3"
);
is(start_h3({
class
=>
'hello'
}),
"<h3 class=\"hello\">"
,
"start_h3 with param"
);
is(end_h3(),
"</h3>"
,
"end_h3"
);
is(start_h4(),
"<h4>"
,
"start_h4"
);
is(start_h4({
class
=>
'hello'
}),
"<h4 class=\"hello\">"
,
"start_h4 with param"
);
is(end_h4(),
"</h4>"
,
"end_h4"
);
is(start_h5(),
"<h5>"
,
"start_h5"
);
is(start_h5({
class
=>
'hello'
}),
"<h5 class=\"hello\">"
,
"start_h5 with param"
);
is(end_h5(),
"</h5>"
,
"end_h5"
);
is(start_h6(),
"<h6>"
,
"start_h6"
);
is(start_h6({
class
=>
'hello'
}),
"<h6 class=\"hello\">"
,
"start_h6 with param"
);
is(end_h6(),
"</h6>"
,
"end_h6"
);
is(start_table(),
"<table>"
,
"start_table"
);
is(start_table({
class
=>
'hello'
}),
"<table class=\"hello\">"
,
"start_table with param"
);
is(end_table(),
"</table>"
,
"end_table"
);
is(start_ul(),
"<ul>"
,
"start_ul"
);
is(start_ul({
class
=>
'hello'
}),
"<ul class=\"hello\">"
,
"start_ul with param"
);
is(end_ul(),
"</ul>"
,
"end_ul"
);
is(start_li(),
"<li>"
,
"start_li"
);
is(start_li({
class
=>
'hello'
}),
"<li class=\"hello\">"
,
"start_li with param"
);
is(end_li(),
"</li>"
,
"end_li"
);
is(start_ol(),
"<ol>"
,
"start_ol"
);
is(start_ol({
class
=>
'hello'
}),
"<ol class=\"hello\">"
,
"start_ol with param"
);
is(end_ol(),
"</ol>"
,
"end_ol"
);
is(start_td(),
"<td>"
,
"start_td"
);
is(start_td({
class
=>
'hello'
}),
"<td class=\"hello\">"
,
"start_td with param"
);
is(end_td(),
"</td>"
,
"end_td"
);
is(start_b(),
"<b>"
,
"start_b"
);
is(start_b({
class
=>
'hello'
}),
"<b class=\"hello\">"
,
"start_b with param"
);
is(end_b(),
"</b>"
,
"end_b"
);
is(start_i(),
"<i>"
,
"start_i"
);
is(start_i({
class
=>
'hello'
}),
"<i class=\"hello\">"
,
"start_i with param"
);
is(end_i(),
"</i>"
,
"end_i"
);
is(start_u(),
"<u>"
,
"start_u"
);
is(start_u({
class
=>
'hello'
}),
"<u class=\"hello\">"
,
"start_u with param"
);
is(end_u(),
"</u>"
,
"end_u"
);
is(start_div(),
"<div>"
,
"start_div"
);
is(start_div({
class
=>
'hello'
}),
"<div class=\"hello\">"
,
"start_div with param"
);
is(end_div(),
"</div>"
,
"end_div"
);