replace Makefile.PL with dist.ini
[catagits/HTML-Zoom.git] / t / parser_weirdness.t
CommitLineData
abc91e12 1use strictures 1;
2use HTML::Zoom;
3use Test::More;
4
5my $html = <<EOHTML;
6<body>
7 <p><br/></p>
8 <p><br /></p>
9</body>
10EOHTML
11
12HTML::Zoom->from_html($html)
13 ->select('body')
14 ->collect_content({
15 into => \my @body
16 })
17 ->run;
18
19is(HTML::Zoom->from_events(\@body)->to_html, <<EOHTML,
20
21 <p><br/></p>
22 <p><br /></p>
23EOHTML
24 'Parses cuddled in place close ok');
25
26done_testing;