From: mike Date: Wed, 12 Apr 2006 12:07:32 +0000 (+0000) Subject: Test event_str() X-Git-Tag: cpan_1_22~180 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=9367a4fba43e514afb0b234e6b57dfda223ff208;p=ZOOM-Perl-moved-to-github.git Test event_str() --- diff --git a/t/19-events.t b/t/19-events.t index d11bf84..87cc242 100644 --- a/t/19-events.t +++ b/t/19-events.t @@ -1,14 +1,17 @@ -# $Id: 19-events.t,v 1.4 2006-04-12 11:59:20 mike Exp $ +# $Id: 19-events.t,v 1.5 2006-04-12 12:07:32 mike Exp $ # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 19-events.t' use strict; use warnings; -use Test::More tests => 22; +use Test::More tests => 23; BEGIN { use_ok('Net::Z3950::ZOOM') }; +ok(Net::Z3950::ZOOM::event_str(Net::Z3950::ZOOM::EVENT_CONNECT) eq "connect", + "connect event properly translated"); + my($errcode, $errmsg, $addinfo) = (undef, "dummy", "dummy"); my $options = Net::Z3950::ZOOM::options_create();