X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fforeign%2FMethod-Signatures%2Fslurpy.t;h=b9c4fcf5a4a438af247e91ecd9317ea2216a7d6f;hb=98e6239b969281c227be6ede859054786dd7b933;hp=63e106c170fd72981251067708e44ba11cf933c3;hpb=e158cf8f49978f42fb2380d3f84c5df963a39a3f;p=p5sagit%2FFunction-Parameters.git diff --git a/t/foreign/Method-Signatures/slurpy.t b/t/foreign/Method-Signatures/slurpy.t index 63e106c..b9c4fcf 100644 --- a/t/foreign/Method-Signatures/slurpy.t +++ b/t/foreign/Method-Signatures/slurpy.t @@ -32,15 +32,8 @@ use Test::More; like $@, qr{\bslurpy_middle\b}; } -# ok !eval q[fun slurpy_positional(:@that) { return \@that; }]; -# like $@, qr{slurpy parameter \@that cannot be named, use a reference instead}; -# -# TODO: { -# local $TODO = "error message incorrect inside an eval"; -# -# like $@, qr{Stuff::}; -# like $@, qr{slurpy_positional\(\)}; -# } + ok !eval q[fun slurpy_positional(:@that) { return \@that; }]; + like $@, qr{\bnamed\b.+\@that\b.+\barray\b}; ok !eval q[fun slurpy_two($this, @that, @other) { return $this, \@that, \@other }]; like $@, qr{\@that\b.+\@other\b};