1use Test::More tests => 3;
2use HTTP::Router;
3use HTTP::Router::Route;
4
5my $r = HTTP::Router->new;
6is @{[ $r->routes ]} => 0;
7
8for my $i (1..10) {
9    my $route = HTTP::Router::Route->new(path => $i);
10    $r->add_route($route);
11}
12is @{[ $r->routes ]} => 10;
13
14$r->reset;
15is @{[ $r->routes ]} => 0;
16