X-Git-Url: http://erislabs.net/gitweb/?p=liburi-template-perl.git;a=blobdiff_plain;f=t%2F20-deparse.t;h=acb753ef0344b5d52ea796a73f6a1d3b90145df6;hp=d6bd5431c809ab94f911f96463f8058cc66eab44;hb=83c3737484d89a57cfd230d6a4039a269e212035;hpb=0bf9e38bd59ec2d30d98cdd5b1ff6659bc776761 diff --git a/t/20-deparse.t b/t/20-deparse.t index d6bd543..acb753e 100644 --- a/t/20-deparse.t +++ b/t/20-deparse.t @@ -6,17 +6,23 @@ use Test::More tests => 8; use_ok( 'URI::Template' ); { - my $template = URI::Template->new( 'http://{domain}.com/{dir}/{file}.html' ); + my $template + = URI::Template->new( 'http://{domain}.com/{dir}/{file}.html' ); isa_ok( $template, 'URI::Template' ); my %result = $template->deparse( 'http://example.com/test/1.html' ); - is_deeply( \%result, { domain => 'example', dir => 'test', file => '1' }, 'deparse()' ); + is_deeply( \%result, { domain => 'example', dir => 'test', file => '1' }, + 'deparse()' ); } { my $template = URI::Template->new( 'http://test.com/{x}/{y}/{x}/{y}' ); isa_ok( $template, 'URI::Template' ); my %result = $template->deparse( 'http://test.com/1/2/1/2' ); - is_deeply( \%result, { x => 1, y => 2 }, 'deparse() with multiple values' ); + is_deeply( + \%result, + { x => 1, y => 2 }, + 'deparse() with multiple values' + ); } {