X-Git-Url: http://erislabs.net/gitweb/?p=liburi-template-perl.git;a=blobdiff_plain;f=t%2F10-basic.t;h=42403674cd7c2ae33d59701da2a12ce7072950ab;hp=162063cbc7b09900c9bf6ce2b0576b7033a2c4ab;hb=53a1b94e04453d9c7eea079af549f2179320b952;hpb=7c69490596e221b9d4be4d94de939429258ff7b3 diff --git a/t/10-basic.t b/t/10-basic.t index 162063c..4240367 100644 --- a/t/10-basic.t +++ b/t/10-basic.t @@ -1,10 +1,16 @@ use strict; use warnings; -use Test::More tests => 14; +use Test::More tests => 15; use_ok( 'URI::Template' ); +# fatal - no template provided +{ + eval { URI::Template->new; }; + ok( $@ ); +} + { my $text = 'http://foo.com/{bar}/{baz}?q=%7B'; my $template = URI::Template->new( $text );