diff options
Diffstat (limited to 't/15-rtf-unrtf.t')
-rw-r--r-- | t/15-rtf-unrtf.t | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/t/15-rtf-unrtf.t b/t/15-rtf-unrtf.t new file mode 100644 index 0000000..e5194f5 --- /dev/null +++ b/t/15-rtf-unrtf.t @@ -0,0 +1,19 @@ +#!perl + +use Test::More tests => 2; + +use HTML::AutoConvert; + +my $c = new HTML::AutoConvert; + +my $force = 'unrtf'; +#$c->{'handlers'}{'doc'}{$force}{'weight'} = -1; +my @del = grep { $_ ne $force } keys %{ $c->{'handlers'}{'rtf'} }; +delete($c->{'handlers'}{'rtf'}{$_}) foreach @del; + +my $html = $c->html_convert('t/VEGAN_RECIPES.rtf'); + +#match $html against something; +like( $html, qr/Gumbo/, 'text has Gumbo' ); +like( $html, qr/Cheesecake/, 'text has Cheesecake' ); + |