use Test::More; use Test::XML; use Data::Dumper; plan tests => 1; use XHTML::Instrumented; my $data = <
  1. Even
  2. Odd
DATA my $cmp = <
  1. one
  2. two
  3. three
DATA my $t = XHTML::Instrumented->new(name => \$data, type => ''); my $output = $t->output( list => $t->loop( headers => [ 'text' ], data => [['one'], ['two'], ['three']], default => 'empty'), ); is_xml($output, $cmp, 'even and odd');