summaryrefslogtreecommitdiff
path: root/t/01-basic.t
diff options
context:
space:
mode:
authorGianni Ceccarelli <dakkar@dechirico.(none)>2009-03-27 15:28:02 +0100
committerGianni Ceccarelli <dakkar@dechirico.(none)>2009-03-27 15:28:02 +0100
commit38cca38c46f7613dcd5aff2e11ba6ad6153d0269 (patch)
tree6fbd35f4a7da0c8ce4dbeeb417033550c0509a28 /t/01-basic.t
parenttest multiple imports with separate engines (diff)
downloadTree-Template-Declare-38cca38c46f7613dcd5aff2e11ba6ad6153d0269.tar.gz
Tree-Template-Declare-38cca38c46f7613dcd5aff2e11ba6ad6153d0269.tar.bz2
Tree-Template-Declare-38cca38c46f7613dcd5aff2e11ba6ad6153d0269.zip
test multiple calls to attribs
Diffstat (limited to 't/01-basic.t')
-rw-r--r--t/01-basic.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/01-basic.t b/t/01-basic.t
index fe205e1..c6b1e8a 100644
--- a/t/01-basic.t
+++ b/t/01-basic.t
@@ -12,6 +12,7 @@ my $tree=tree {
node {
name 'coso1';
attribs name => 'coso_1';
+ attribs other => 'some';
};
node {
name 'coso2';
@@ -19,7 +20,9 @@ my $tree=tree {
};
};
-diag $_ for @{$tree->draw_ascii_tree()};
is_deeply($tree->tree_to_lol(),
[['coso1'],['coso2'],'root'],
'built the tree');
+is_deeply(($tree->daughters)[0]->attributes,
+ {name => 'coso_1', other => 'some'},
+ 'attributes');