summaryrefslogtreecommitdiff
path: root/t/01-basic.t
diff options
context:
space:
mode:
authorGianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>2015-03-25 10:04:49 +0000
committerGianni Ceccarelli <gianni.ceccarelli@net-a-porter.com>2015-03-25 10:04:49 +0000
commit1af9ada48f844f08a4200f05a56715573a97d6e2 (patch)
tree5676f4e67b82eee1b01b80d23623f0a9df6f4c04 /t/01-basic.t
parentmore rebust tests, work with hash randomisation (diff)
downloadTree-Template-Declare-1af9ada48f844f08a4200f05a56715573a97d6e2.tar.gz
Tree-Template-Declare-1af9ada48f844f08a4200f05a56715573a97d6e2.tar.bz2
Tree-Template-Declare-1af9ada48f844f08a4200f05a56715573a97d6e2.zip
make tests compatible with newer Tree::DAG_Node
Diffstat (limited to 't/01-basic.t')
-rw-r--r--t/01-basic.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/01-basic.t b/t/01-basic.t
index cb633bd..01d3510 100644
--- a/t/01-basic.t
+++ b/t/01-basic.t
@@ -19,9 +19,9 @@ my $tree=tree {
};
};
-is_deeply($tree->tree_to_lol(),
- [['coso1'],['coso2'],'root'],
- 'built the tree');
+cmp_deeply($tree->tree_to_lol(),
+ [[re(qr{coso1})],[re(qr{coso2})],re(qr{root})],
+ 'built the tree');
is_deeply(($tree->daughters)[0]->attributes,
{name => 'coso_1', other => 'some'},
'attributes');