X-Git-Url: http://erislabs.net/gitweb/?p=liburi-template-perl.git;a=blobdiff_plain;f=t%2F10-basic.t;h=28e85222f6d6f9e9ddd62fec028fef88798e83b9;hp=42403674cd7c2ae33d59701da2a12ce7072950ab;hb=83c3737484d89a57cfd230d6a4039a269e212035;hpb=0bf9e38bd59ec2d30d98cdd5b1ff6659bc776761 diff --git a/t/10-basic.t b/t/10-basic.t index 4240367..28e8522 100644 --- a/t/10-basic.t +++ b/t/10-basic.t @@ -7,15 +7,19 @@ use_ok( 'URI::Template' ); # fatal - no template provided { - eval { URI::Template->new; }; - ok( $@ ); + eval { URI::Template->new; }; + ok( $@ ); } { my $text = 'http://foo.com/{bar}/{baz}?q=%7B'; my $template = URI::Template->new( $text ); isa_ok( $template, 'URI::Template' ); - is_deeply( [ sort $template->variables ], [ qw( bar baz ) ], 'variables()' ); + is_deeply( + [ sort $template->variables ], + [ qw( bar baz ) ], + 'variables()' + ); is( "$template", $text, 'as_string()' ); { @@ -43,7 +47,7 @@ use_ok( 'URI::Template' ); is( $result, 'http://foo.com/%7Bx%7D/', 'values are uri escaped' ); } { - my $result = $template->process( ); + my $result = $template->process(); is( $result, 'http://foo.com//', 'no value sent' ); } {