2 # Test hyperlinks et al from Pod::ParseUtils
4 use Test::More tests => 22;
24 "Q<ident> in P<name>",
28 "Q<http://www.perl.org/>",
35 is(@results, @links, 'sanity check - array lengths equal?');
37 for my $i( 0..@links ) {
38 my $link = new Pod::Hyperlink( $links[$i] );
39 is($link->markup, $results[$i], "test hyperlink $i");
43 # This test needs to be better
44 my $list = new Pod::List( -indent => 4,
46 -file => "itemtest.t",
54 is($list->type, "OL");
61 my $cache = new Pod::Cache;
63 # Store it in the cache
65 -page => "Pod::ParseUtils",
66 -description => "A description",
70 my $item = $cache->find_page("Pod::ParseUtils");
71 ok($item, 'found item of this name');
73 is($cache->find_page("Junk"), undef, 'expect to find nothing');
76 is($i[0], $item, 'item we found is the same one as the first in the list');
79 is($item->page, "Pod::ParseUtils");
80 is($item->description, "A description");
81 is($item->file, "file.t");