]>
iEval git - html-element-library.git/blob - t/newchild.t
43b641deeb61f1a9cede496c32037243961e9497
11 use_ok
('HTML::TreeBuilder');
12 use_ok
('HTML::Element::Library');
16 my $initial_lol = [ note
=> [ shopping
=> [ item
=> 'sample' ] ] ];
17 my $new_lol = HTML
::Element
::newchild
($initial_lol, shopping
=> shopping_items
());
21 my @shopping_items = map { [ item
=> $_ ] } qw(bread butter beans);
45 warn Dumper
($new_lol);
47 is_deeply
($new_lol, $expected, 'test unrolling');
This page took 0.046365 seconds and 3 git commands to generate.