Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[t/spec] renamed parameters are tested; remove from TASKS

git-svn-id: http://svn.pugscode.org/pugs@26198 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
commit 797076de2941cdab86b6f17091f6f82f1b8a984e 1 parent 08292a3
moritz authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  S06-signature/named-parameters.t
View
3  S06-signature/named-parameters.t
@@ -1,7 +1,7 @@
use v6;
use Test;
-plan 74;
+plan 75;
# L<S06/Required parameters/"Passing a named argument that cannot be bound to
# a normal subroutine is also a fatal error.">
@@ -213,6 +213,7 @@ ok(%fellowship<dwarf> ~~ undef, "dwarf arg was not given");
sub renames(:y($x)) { $x }
is(renames(:y(42)), 42, 'renaming of parameters works');
is(renames(y => 42), 42, 'renaming of parameters works');
+ dies_ok { renames(:x(23)) }, 'old name is not available';
}
Please sign in to comment.
Something went wrong with that request. Please try again.