Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
#!/usr/bin/perl |
| 2 |
|
| 3 |
use lib 'lib'; |
| 4 |
use WWW::Search; |
| 5 |
use Test::More tests => 4; |
| 6 |
|
| 7 |
my $s = new WWW::Search('PubMed'); |
| 8 |
isa_ok( $s, 'WWW::Search' ); |
| 9 |
|
| 10 |
$s->native_query('ACGT'); |
| 11 |
|
| 12 |
my $r = $s->next_result(); |
| 13 |
ok( $r->title, 'Got title. Assuming everything is ok ;)' ); |
| 14 |
|
| 15 |
my $pmid = $r->pmid; |
| 16 |
like( $pmid, qr/^\d+$/, 'Got pmid' ); |
| 17 |
|
| 18 |
my $abst = $r->abstract; |
| 19 |
ok( length($abst), 'Got abstract' ); |