From 241599f441cb101de5802feb905a4ca6bc2efc2f Mon Sep 17 00:00:00 2001 From: mike Date: Tue, 8 Nov 2005 14:46:31 +0000 Subject: [PATCH] Nicer option-setting syntax. --- t/16-packages.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/16-packages.t b/t/16-packages.t index 8dfce9e..b48d467 100644 --- a/t/16-packages.t +++ b/t/16-packages.t @@ -1,4 +1,4 @@ -# $Id: 16-packages.t,v 1.1 2005-11-08 13:47:11 mike Exp $ +# $Id: 16-packages.t,v 1.2 2005-11-08 14:46:31 mike Exp $ # Before `make install' is performed this script should be runnable with # `make test'. After `make install' it should work as `perl 16-packages.t' @@ -22,7 +22,7 @@ my $p = Net::Z3950::ZOOM::connection_package($conn, $o); ok(defined $p, "created package"); # There may be useful options to set, but this is not one of them! -Net::Z3950::ZOOM::package_option_set($p, "foo", "bar"); +Net::Z3950::ZOOM::package_option_set($p, foo => "bar"); my $val = Net::Z3950::ZOOM::package_option_get($p, "foo"); ok($val eq "bar", "package option retrieved as expected"); -- 1.7.10.4