Permalink
Browse files

Add another named placeholder test.

git-svn-id: http://svn.pugscode.org/pugs@20382 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
tene
tene committed May 7, 2008
1 parent db47a3f commit 22bc0f3c8b2763765b2281f8e89a79a1dc6cf359
Showing with 8 additions and 1 deletion.
  1. +8 −1 S06-signature/named-placeholders.t
@@ -1,7 +1,7 @@
use v6;
use Test;
-plan 1;
+plan 3;
#L<S06/Placeholder variables/>
@@ -11,4 +11,11 @@ sub one_placeholder {
one_placeholder(:bla(2));
+sub two_placeholders {
+ is $:b, 1, "Named dispatch isn't broken for placeholders";
+ is $:a, 2, "Named dispatch isn't broken for placeholders";
+}
+
+two_placeholders(:a(2), :b(1));
+
# vim: syn=perl6

0 comments on commit 22bc0f3

Please sign in to comment.