projects
/
liburi-template-perl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge ../cvt/liburi-template-perl into 0.06
[liburi-template-perl.git]
/
t
/
20-deparse.t
diff --git
a/t/20-deparse.t
b/t/20-deparse.t
index
fd112e0
..
d6bd543
100644
(file)
--- a/
t/20-deparse.t
+++ b/
t/20-deparse.t
@@
-23,8
+23,8
@@
use_ok( 'URI::Template' );
my $template = URI::Template->new( 'http://ex.com/{x}' );
isa_ok( $template, 'URI::Template' );
my %input = ( x => 'y' );
my $template = URI::Template->new( 'http://ex.com/{x}' );
isa_ok( $template, 'URI::Template' );
my %input = ( x => 'y' );
- my $uri
= $template->process( x => 'y' );
+ my $uri = $template->process( x => 'y' );
is( $uri, 'http://ex.com/y' );
is( $uri, 'http://ex.com/y' );
- my %result
= $template->deparse( $uri );
+ my %result = $template->deparse( $uri );
is_deeply( \%result, \%input, 'process => deparse' );
}
is_deeply( \%result, \%input, 'process => deparse' );
}