Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
17 lines (11 sloc) 290 Bytes
use v6;
use Test;
use URI::Dispatcher;
{
my $callback_called = False;
my $d = URI::Dispatcher.new(
'/' => { $callback_called = True }
);
ok $d.dispatch('/'), 'can dispatch on provided literal URL';
ok $callback_called, 'the provided callback was called';
}
Something went wrong with that request. Please try again.