Skip to content

Commit

Permalink
More slurpy error message tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
rafl committed May 1, 2009
1 parent abe16e0 commit 4b4481d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion t/list.t
@@ -1,6 +1,6 @@
use strict;
use warnings;
use Test::More tests => 9;
use Test::More tests => 10;
use Test::Exception;
use MooseX::Method::Signatures;

Expand Down Expand Up @@ -30,3 +30,6 @@ for my $meth (@meths) {

eval 'my $meth = method (:$foo, :@bar) { }';
like $@, qr/arrays or hashes cannot be named/i;

eval 'my $meth = method ($foo, @bar, :$baz) { }';
like $@, qr/named parameters can not be combined with slurpy positionals/i;

0 comments on commit 4b4481d

Please sign in to comment.