Imported upstream version 0.07
[liburi-template-perl.git] / t / 10-basic.t
index 162063c..4240367 100644 (file)
@@ -1,10 +1,16 @@
 use strict;
 use warnings;
 
 use strict;
 use warnings;
 
-use Test::More tests => 14;
+use Test::More tests => 15;
 
 use_ok( 'URI::Template' );
 
 
 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 );
 {
     my $text     = 'http://foo.com/{bar}/{baz}?q=%7B';
     my $template = URI::Template->new( $text );