projects
/
liburi-template-perl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Imported upstream version 0.07
[liburi-template-perl.git]
/
t
/
10-basic.t
diff --git
a/t/10-basic.t
b/t/10-basic.t
index
162063c
..
4240367
100644
(file)
--- a/
t/10-basic.t
+++ b/
t/10-basic.t
@@
-1,10
+1,16
@@
use strict;
use warnings;
use strict;
use warnings;
-use Test::More tests => 1
4
;
+use Test::More tests => 1
5
;
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 );