Browse files

[spec] move blocks/placeholders.t to spec/, Tene++ for such a nice te…

…st file

git-svn-id: http://svn.pugscode.org/pugs@21240 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent c9f438f commit e5df56132452f0f13845f37eef29648b393b29ab moritz committed Jul 6, 2008
Showing with 24 additions and 0 deletions.
  1. +24 −0 S06-signature/mixed-placeholders.t
View
24 S06-signature/mixed-placeholders.t
@@ -0,0 +1,24 @@
+use v6;
+
+use Test;
+
+#L<S06/Placeholder variables/>
+
+plan 12;
+
+sub t {
+ is $^tene, 3, "Placeholder vars work";
+ is $:DietCoke, 6, "Placeholder vars work";
+ is $^chromatic, 1, "Placeholder vars work";
+ is $:moritz, 4, "Placeholder vars work";
+ is $^mncharity, 2, "Placeholder vars work";
+ is $:TimToady, 5, "Placeholder vars work";
+ is @_[1], 8, "Placeholder vars work";
+ is %_<bar>, 11, "Placeholder vars work";
+ is @_[0], 7, "Placeholder vars work";
+ is %_<foo>, 10, "Placeholder vars work";
+ is @_[2], 9, "Placeholder vars work";
+ is %_<baz>, 12, "Placeholder vars work";
+}
+
+t(1, 2, 3, :moritz(4), :TimToady(5), :DietCoke(6), 7, 8, 9, :foo(10), :bar(11), :baz(12));

0 comments on commit e5df561

Please sign in to comment.