Remove extraneous output.
[ZOOM-Perl-moved-to-github.git] / t / 2-ZOOM.t
index 98d4ded..b07b7ad 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: 2-ZOOM.t,v 1.3 2005-10-12 14:31:53 mike Exp $
+# $Id: 2-ZOOM.t,v 1.5 2005-10-13 13:27:27 mike Exp $
 
 # Before `make install' is performed this script should be runnable with
 # `make test'. After `make install' it should work as `perl ZOOM.t'
@@ -8,7 +8,7 @@
 # change 'tests => 1' to 'tests => last_test_to_print';
 
 use strict;
-use Test::More tests => 11;
+use Test::More tests => 12;
 BEGIN { use_ok('ZOOM') };
 
 #########################
@@ -16,6 +16,9 @@ BEGIN { use_ok('ZOOM') };
 # Insert your test code below, the Test::More module is use()ed here so read
 # its man page ( perldoc Test::More ) for help writing this test script.
 
+my $msg = ZOOM::diag_str(ZOOM::Error::INVALID_QUERY);
+ok($msg eq "Invalid query", "diagnostic string lookup works");
+
 my $host = "no.such.host";
 my $conn;
 eval { $conn = new ZOOM::Connection($host, 0) };
@@ -25,7 +28,7 @@ ok($@ && $@->isa("ZOOM::Exception") &&
 
 $host = "indexdata.com/gils";
 eval { $conn = new ZOOM::Connection($host, 0) };
-ok(!$@, "connection to '$host' OK");
+ok(!$@, "connection to '$host'");
 
 my $syntax = "usmarc";
 $conn->option(preferredRecordSyntax => $syntax);
@@ -41,7 +44,7 @@ ok($@ && $@->isa("ZOOM::Exception") &&
 
 $query = '@attr 1=4 minerals';
 eval { $rs = $conn->search_pqf($query) };
-ok(!$@, "search for '$query' OK");
+ok(!$@, "search for '$query'");
 
 my $n = $rs->size($rs);
 ok($n == 1, "found 1 record as expected");