Debian Codegraph @

googlism/test.pl

raw ◀ ▶
1 Debian patch touch this file
•1 use Test::More;
2 $|++;
3
4 use WWW::Search::Googlism;
5
•6 unless ($ENV{NO_NETWORK}) {
7 plan tests => 1;
8 }
•9 else {
10 plan skip_all => "no network";
11 }
•12
13 $query = "googlism";
14 $search = new WWW::Search('Googlism');
15 $search->native_query(WWW::Search::escape_query($query), { type => 'who' });
16 while (my $result = $search->next_result()) {
17 $text .= "$result\n";
18 }
19 ok(($text ? 1 : 0), 1);