use strict; BEGIN { $^W = 1; use vars qw(@tests); @tests = ( [ 'empty', q{}, q{} ], [ 'space', q{ }, q{ } ], [ 'plain', q{hello mum}, q{hello mum} ], [ 'plain nl', qq{hello mum\n}, "hello mum\n" ], [ 'nonprint', qq{foo\0bar}, "foo bar" ], [ 'p tag', qq{
hello mum\n}, "
hello mum\n
" ], [ 'i tag', qq{hello mum\n}, "hello mum\n" ], [ 'valid p', q{valid p
}, q{valid p
} ], [ 'misplaced tr', q{misplacedhello},
q{ },
q{hello}, q{ hello} ], [ 'hr width', q{x y}, q{x y} ], [ 'hr width dq', q{x y}, q{x y} ], [ 'hr width sq', q{x y}, q{x y} ], [ 'hr silly width', q{x y}, q{x y} ], [ 'hr silly width dq', q{x y}, q{x y} ], [ 'hr silly width sq', q{x y}, q{x y} ], [ 'bad trailing /', q{hello}, q{hello} ], [ 'good trailing /', q{ }, q{ } ], [ 'interleave', q{ghE}, q{ghE} ], [ 'interleave case', q{ghE}, q{ghE} ], [ 'interleave open', q{ghE}, q{ghE} ], [ 'p close order', q{ one two three}, q{ one two three } ], [ 'p/li close order', q{
|