initial import
[HTML-AutoConvert.git] / t / 03-doc-wvWare.t
1 #!perl
2
3 use Test::More tests => 2;
4
5 use HTML::AutoConvert;
6
7 my $c = new HTML::AutoConvert;
8
9 my $force = 'wvWare';
10 #$c->{'handlers'}{'doc'}{$force}{'weight'} = -1;
11 my @del = grep { $_ ne $force } keys %{ $c->{'handlers'}{'doc'} };
12 delete($c->{'handlers'}{'doc'}{$_}) foreach @del;
13
14 my $html = $c->html_convert('t/DiaryofaKillerCat.doc');
15
16 #match $html against something;
17 like( $html, qr/Chunky/, 'text is Chunky' );
18 like( $html, qr/Monkey/, 'text has Monkey' );
19