Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #74492
  • Loading branch information
Mouq committed Apr 13, 2014
1 parent 27d6be5 commit a503ffa
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions S02-literals/adverbs.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 11;
plan 13;

# L<S02/Adverbial Pair forms>

Expand All @@ -22,4 +22,13 @@ plan 11;
is_deeply (:&a), (a => &a), ":&a works";

is (:a{ 42 + 24 })<a>(), 66, "Adverb with postfix:<{ }> makes code object";
}
} # 11

# RT #74492
{
sub foo(:$a, :$b, :$c) {
ok $a && $b && $c, "Adverbs without punctuations is allowed"
}
foo(:a :b :c);
foo(:a:b:c);
} # 13

0 comments on commit a503ffa

Please sign in to comment.