Skip to content

Commit

Permalink
Update the test for the isTopLevel variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
perlDreamer committed May 5, 2010
1 parent 491c302 commit 16cca1f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions t/Asset/Wobject/WikiMaster.t
Expand Up @@ -101,20 +101,23 @@ cmp_deeply(
level => 0,
indent_loop => [],
descendants => 0,
isTopLevel => 1,
},
{
title => 'inmates',
url => '/testwiki?func=byKeyword;keyword=inmates',
level => 0,
indent_loop => [],
descendants => 0,
isTopLevel => 1,
},
{
title => 'staff',
url => '/testwiki?func=byKeyword;keyword=staff',
level => 0,
indent_loop => [],
descendants => 0,
isTopLevel => 1,
},
],
"... variables",
Expand Down Expand Up @@ -245,9 +248,9 @@ cmp_deeply(
},
]),
[
{ title => 'title 0', url => 'url 0', level => 0, indent_loop => [], },
{ title => 'title 1', url => 'url 1', level => 1, indent_loop => [{indent => 1}], },
{ title => 'title 2', url => 'url 2', level => 2, indent_loop => [{indent => 1,}, {indent => 2,},], },
{ title => 'title 0', url => 'url 0', level => 0, isTopLevel => 1, indent_loop => [], },
{ title => 'title 1', url => 'url 1', level => 1, isTopLevel => '', indent_loop => [{indent => 1}], },
{ title => 'title 2', url => 'url 2', level => 2, isTopLevel => '', indent_loop => [{indent => 1,}, {indent => 2,},], },
],
'getKeywordVariables: checking deeply'
);
Expand Down

0 comments on commit 16cca1f

Please sign in to comment.