# these tests are taken from HTML::ResolveLink, written by miyagawa use strict; use Test::More tests => 3; use HTML::RewriteAttributes::Links; my $base = "http://www.example.com/base/"; my $resolver = "HTML::RewriteAttributes::Links"; my $html = $resolver->rewrite(<<'HTML', $base); foofoo & bar foobar hey & bar
bar HTML is $html, <<'HTML'; foofoo & bar foobar hey & bar
bar HTML $html = $resolver->rewrite(<<'HTML', $base); foo foo HTML is $html, <<'HTML', ''; foo foo HTML ; $html = $resolver->rewrite(<<'HTML', $base); & "foo" HTML is $html, <<'HTML', 'HTML entities'; & "foo" HTML ;