diff options
author | Graham Barr <gbarr@pobox.com> | 2004-04-19 12:32:33 +0000 |
---|---|---|
committer | Graham Barr <gbarr@pobox.com> | 2009-02-24 08:51:38 -0600 |
commit | f58ae5d82506679f273a8961bd93116874d452ed (patch) | |
tree | a311167997a3716dca7ef6913df97cbed1f23cd6 | |
parent | a655c3bcb3b2e4f9ef7e0ee438371990a44ed70e (diff) | |
download | perl-libnet-f58ae5d82506679f273a8961bd93116874d452ed.tar.gz |
test return values of datasend and dataend
-rw-r--r-- | t/datasend.t | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/datasend.t b/t/datasend.t index 5c785ba..0786709 100644 --- a/t/datasend.t +++ b/t/datasend.t @@ -30,16 +30,16 @@ BEGIN { (my $libnet_t = __FILE__) =~ s/datasend.t/libnet_t.pl/; require $libnet_t or die; -print "1..15\n"; +print "1..51\n"; sub check { my $expect = pop; my $cmd = Foo->new; - $cmd->datasend unless @_; + ok($cmd->datasend, 'datasend') unless @_; foreach my $line (@_) { - $cmd->datasend($line); + ok($cmd->datasend($line), 'datasend'); } - $cmd->dataend; + ok($cmd->dataend, 'dataend'); is( unpack("H*",$cmd->output), unpack("H*",$expect) |