Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add test for RT #121692
  • Loading branch information
lizmat committed Apr 21, 2014
1 parent 162bbf4 commit 999caf1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion S13-overloading/metaoperators.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 9;
plan 10;

#L<S06/Operator overloading>

Expand Down Expand Up @@ -30,4 +30,11 @@ is ~(('OMG','BBQ') <<wtf<< ('BBQ','OMG')), 'OMGWTFBBQ BBQWTFOMG', '<<...<< hyper
is ~(('OMG','BBQ') >>wtf>> ('BBQ','OMG')), 'OMGWTFBBQ BBQWTFOMG', '>>...>> hyper generated';
is ~(('OMG','BBQ') <<wtf>> ('BBQ','OMG')), 'OMGWTFBBQ BBQWTFOMG', '<<...>> hyper generated';

# RT 121692
#?rakudo skip "couldn't find final ']'"
{
sub foo { $^a ~ $^b };
is [[&foo]] <a b c d e>, 'abcde', "can we use sub as an op between[]";
}

# vim: ft=perl6

0 comments on commit 999caf1

Please sign in to comment.