Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

15 lines (9 sloc) 0.248 kB
use strict;
use warnings;
use Test::More tests => 2;
use Routes::Tiny;
my $r = Routes::Tiny->new;
$r->add_route('/:foo', name => 'route');
my $m = $r->match('0');
is_deeply($m->params, {foo => 0});
is($r->build_path('route', foo => 0), '/0');
Jump to Line
Something went wrong with that request. Please try again.