summaryrefslogtreecommitdiff
path: root/t/06-code.t
diff options
context:
space:
mode:
Diffstat (limited to 't/06-code.t')
-rw-r--r--t/06-code.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/06-code.t b/t/06-code.t
index a24427d..959fce2 100644
--- a/t/06-code.t
+++ b/t/06-code.t
@@ -21,9 +21,11 @@ sub make_item {
sub make_list {
my (@items)=@_;
+ my @item_nodes=map {make_item(@$_)} @items;
+
return node {
name 'list';
- make_item(@$_) for @items;
+ attach_nodes @item_nodes;
};
}