summaryrefslogtreecommitdiff
path: root/t/07-inherit.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/07-inherit.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/07-inherit.t')
-rw-r--r--t/07-inherit.t12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/07-inherit.t b/t/07-inherit.t
index 2974e6f..642b24f 100644
--- a/t/07-inherit.t
+++ b/t/07-inherit.t
@@ -56,12 +56,12 @@ use warnings;
my $base_tree=Base->doc();
-is_deeply($base_tree->tree_to_lol(),
- [['title'],[['stuff'],'content'],'doc'],
- 'base tree');
+cmp_deeply($base_tree->tree_to_lol(),
+ [[re(qr{title})],[[re(qr{stuff})],re(qr{content})],re(qr{doc})],
+ 'base tree');
my $deriv_tree=Derived->doc();
-is_deeply($deriv_tree->tree_to_lol(),
- [['whatever'],['title'],[['something'],'content'],'doc'],
- 'derived tree');
+cmp_deeply($deriv_tree->tree_to_lol(),
+ [[re(qr{whatever})],[re(qr{title})],[[re(qr{something})],re(qr{content})],re(qr{doc})],
+ 'derived tree');