Browse Source

* update tests

master
Zubrikhin Alexey 9 years ago
parent
commit
5d05e0750f
  1. 11
      t/parser-text-1.t

11
t/parser-text-1.t

@ -15,16 +15,9 @@ my $tree = [ $dw->_parse_text($text) ];
is(ref $tree, 'ARRAY');
is_deeply($tree, [
'This is text with ',
[span => {'font-style' =>'italic'},
'inline ',
[span => {'font-weight' => 'bold'},
'formatting',
],
],
[i => {}, 'inline ', [b => {}, 'formatting']],
' rules ',
[a => {href => 'http://site.com'},
'and',
],
[a => {href => 'http://site.com'}, 'and'],
' links.',
]);

Loading…
Cancel
Save