File: 26.autoformat.t

package info (click to toggle)
libwww-wikipedia-perl 2.05-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid, trixie
  • size: 248 kB
  • sloc: perl: 1,577; makefile: 4
file content (13 lines) | stat: -rw-r--r-- 416 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
use strict;
use warnings;
use Test::More tests => 2;
use WWW::Wikipedia;

# Text::Autoformat has had some bugs which some wikipedia content
# has been known to trigger. Make sure we cover those bases.

my $wiki = WWW::Wikipedia->new();
foreach my $search ( 'princeton', 'Eddie Fenech Adami' ) {
    my $entry = $wiki->search( $search );
    isa_ok( $entry, 'WWW::Wikipedia::Entry', "search result for: $search" );
}