1 # Before `make install' is performed this script should be runnable with
2 # `make test'. After `make install' it should work as `perl Oping.t'
4 #########################
6 # change 'tests => 2' to 'tests => last_test_to_print';
8 use Test::More tests => 5;
9 BEGIN { use_ok('Net::Oping') };
11 my $obj = Net::Oping->new ();
12 ok (defined ($obj), 'Constructor');
14 ok ($obj->timeout (2.0), 'Set timeout');
15 ok ($obj->ttl (64), 'Set TTL');
17 is ($obj->get_error (), 'Success', 'Get error')
19 #########################
21 # Insert your test code below, the Test::More module is use()ed here so read
22 # its man page ( perldoc Test::More ) for help writing this test script.