Source reconstructed at patch state 0 of 1 — not the installed (fully patched) source.
1 Debian patch touch this file
| 1 |
use Test; |
| 2 |
$|++; |
| 3 |
BEGIN { plan tests => 2 }; |
| 4 |
|
| 5 |
use WWW::Search::Googlism; |
| 6 |
ok(1); |
| 7 |
|
| 8 |
print "Are you connected to internet [Y/n]?"; |
| 9 |
chomp($ans = <STDIN>); |
| 10 |
if($ans =~ /n/i){ |
| 11 |
ok(1); |
| 12 |
} |
| 13 |
else{ |
| 14 |
$query = "googlism"; |
| 15 |
$search = new WWW::Search('Googlism'); |
| 16 |
$search->native_query(WWW::Search::escape_query($query), { type => 'who' }); |
| 17 |
while (my $result = $search->next_result()) { |
| 18 |
$text .= "$result\n"; |
| 19 |
} |
| 20 |
ok(($text ? 1 : 0), 1); |
| 21 |
} |