Browse files

start to get rid of the undef term

  • Loading branch information...
1 parent 8dfebd5 commit a1941333bc99a03ef5b63cb27b3e53d52fe52c0a @moritz moritz committed Dec 23, 2009
Showing with 6 additions and 5 deletions.
  1. +2 −2 lib/Dispatcher/Rule.pm
  2. +4 −3 t/cgi/01-cgi.t
View
4 lib/Dispatcher/Rule.pm
@@ -51,8 +51,8 @@ method is_complete {
method clear {
@!args = ();
- $!controller = undef;
- $!action = undef;
+ $!controller = Mu;
+ $!action = Mu;
}
# vim:ft=perl6
View
7 t/cgi/01-cgi.t
@@ -60,10 +60,11 @@ my @add_params = (
:key3<4> , { :key1<val val2>, :key2<val>, :key3<4> },
:key4<4.1> , { :key1<val val2>, :key2<val>, :key3<4>, :key4<4.1> },
- # Do not consistency :( but we don`t have adverbial syntax to set pairs with undef value
+ # Do not consistency :( but we don`t have adverbial syntax to set pairs
+ # with undefined value
# see http://www.nntp.perl.org/group/perl.perl6.language/2008/09/msg29610.html
- # Skip now, because is_deeply do not work properly with undef :(
- #key2 => undef , { :key1<val val2>, key2 => ["val", undef], :key3<4>, :key4<4.1> },
+ # Skip now, because is_deeply do not work properly with Mu :(
+ #key2 => Mu , { :key1<val val2>, key2 => ["val", Mu], :key3<4>, :key4<4.1> },
);
for @add_params -> $in, $expected {

0 comments on commit a194133

Please sign in to comment.