Tested ZOOM_scanset_option_get() and ZOOM_scanset_option_set()
[ZOOM-Perl-moved-to-github.git] / t / 15-scan.t
index beaf1bd..31d1e13 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: 15-scan.t,v 1.4 2005-11-09 16:47:42 mike Exp $
+# $Id: 15-scan.t,v 1.6 2005-11-09 17:03:15 mike Exp $
 
 # Before `make install' is performed this script should be runnable with
 # `make test'. After `make install' it should work as `perl 15-scan.t'
@@ -76,7 +76,7 @@ ok(Net::Z3950::ZOOM::scanset_option_get($ss, "position") == 0,
    "seed-term before start of returned list");
 
 # Silly test of option setting and getting
-Net::Z3950::ZOOM::scanset_option_set($ss, "position", "fruit");
+Net::Z3950::ZOOM::scanset_option_set($ss, position => "fruit");
 ok(Net::Z3950::ZOOM::scanset_option_get($ss, "position") eq "fruit",
    "option setting/getting works");
 
@@ -96,6 +96,6 @@ sub scan {
     ok($errcode == 0, "scan for '$startterm'");
     $n = Net::Z3950::ZOOM::scanset_size($ss);
     ok(defined $n, "got size");
-    ok($n == $nexpected, "got $n terms (expected $n)");
+    ok($n == $nexpected, "got $n terms (expected $nexpected)");
     return ($ss, $n);
 }