1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 5,
11 -requires_modules => [qw(IO::String
13 HTTP::Request::Common)],
14 -requires_networking => 1);
16 use_ok('Bio::DB::MeSH');
22 ok my $mesh = Bio::DB::MeSH->new();
25 eval {$t = $mesh->get_exact_term('Dietary Fats');};
26 skip "Couldn't connect to MeSH with Bio::DB::MeSH. Skipping those tests", 3 if $@;
27 is $t->each_twig(), 3;
29 eval {$t = $mesh->get_exact_term("Sinus Thrombosis, Intracranial");};
30 skip "Couldn't connect to MeSH with Bio::DB::MeSH. Skipping those tests", 2 if $@;
31 like $t->description, qr/Thrombus/i;