1 # Before `make install' is performed this script should be runnable with
2 # `make test'. After `make install' it should work as `perl test.pl'
6 use Test::More tests => 5;
7 BEGIN { use_ok('Net::Whois::Raw',qw( whois )) };
16 print "The following tests requires internet connection...\n";
18 foreach my $domain ( @domains ) {
19 my $txt = whois( $domain );
20 ok($txt =~ /$domain/i, "$domain resolved");