PageRenderTime 16ms CodeModel.GetById 14ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/tags/1.0/t/8_get_pages_in_category.t

http://perlwikipedia.googlecode.com/
Unknown | 20 lines | 12 code | 8 blank | 0 comment | 0 complexity | f52399cabdb5c65f032e530948909ea0 MD5 | raw file
Possible License(s): GPL-3.0
 1# Before `make install' is performed this script should be runnable with
 2# `make test'. After `make install' it should work as `perl Perlwikipedia.t'
 3
 4#########################
 5
 6# change 'tests => 1' to 'tests => last_test_to_print';
 7
 8use Test::More tests => 1;
 9
10#########################
11
12# Insert your test code below, the Test::More module is use()ed here so read
13# its man page ( perldoc Test::More ) for help writing this test script.
14use Perlwikipedia;
15
16$wikipedia=Perlwikipedia->new("make test");
17
18my @pages = $wikipedia->get_all_pages_in_category("Category:Perlwikipedia bots");
19
20ok( defined $pages[0] );