diff options
author | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2015-03-25 10:04:49 +0000 |
---|---|---|
committer | Gianni Ceccarelli <gianni.ceccarelli@net-a-porter.com> | 2015-03-25 10:04:49 +0000 |
commit | 1af9ada48f844f08a4200f05a56715573a97d6e2 (patch) | |
tree | 5676f4e67b82eee1b01b80d23623f0a9df6f4c04 /t/06-code.t | |
parent | more rebust tests, work with hash randomisation (diff) | |
download | Tree-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/06-code.t')
-rw-r--r-- | t/06-code.t | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/t/06-code.t b/t/06-code.t index a37d0d3..f80c7fa 100644 --- a/t/06-code.t +++ b/t/06-code.t @@ -36,13 +36,13 @@ my $tree=tree { ); }; -is_deeply($tree->tree_to_lol(), - [ - [['description'],'item'], - [['description'],'item'], - [['description'],'item'], - 'list'], - 'tree with code'); +cmp_deeply($tree->tree_to_lol(), + [ + [[re(qr{description})],re(qr{item})], + [[re(qr{description})],re(qr{item})], + [[re(qr{description})],re(qr{item})], + re(qr{list})], + 'tree with code'); my @attrs; $tree->walk_down({callback=>sub{ |