Permalink
Browse files

[URI::Dispatcher] added another test

This one passes already: dispatch on something unknown fails.
  • Loading branch information...
1 parent dceea22 commit c3dc91e073d26959fd9c2a369c1d288c2bb318f9 @masak committed Dec 4, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 t/uri-dispatcher/01-literal.t
@@ -2,6 +2,8 @@ use v6;
use Test;
+plan 3;
+
use URI::Dispatcher;
{
@@ -13,4 +15,6 @@ use URI::Dispatcher;
ok $d.dispatch('/'), 'can dispatch on provided literal URL';
ok $callback_called, 'the provided callback was called';
+
+ nok $d.dispatch('/something/made/up'), 'failed dispatch';
}

0 comments on commit c3dc91e

Please sign in to comment.