From: mike Date: Wed, 9 Nov 2005 17:00:43 +0000 (+0000) Subject: Nicer option-setting syntax. X-Git-Tag: cpan_1_22~368 X-Git-Url: http://lists.indexdata.com/cgi-bin?a=commitdiff_plain;h=4f76ac1e710b77d83dec1f05d118484b3967ffb3;p=ZOOM-Perl-moved-to-github.git Nicer option-setting syntax. --- diff --git a/t/15-scan.t b/t/15-scan.t index beaf1bd..4e42f13 100644 --- a/t/15-scan.t +++ b/t/15-scan.t @@ -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.5 2005-11-09 17:00:43 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");