use v6-alpha; use Test; plan 7; # L # comb Str is "".comb, (), 'comb on empty string'; is "a bc d".comb, , 'default matcher and limit'; is "a bc d".comb(:limit(2)), , 'default matcher with supplied limit', :todo; is "a ab bc ad ba".comb(m:Perl5/\ba\S*/), , 'match for any a* words'; is "a ab bc ad ba".comb(m:Perl5/\S*a\S*/), , 'match for any *a* words'; is eval('"a ab bc ad ba".comb(m:Perl5/\S*a\S*/, 2)'), , 'matcher and limit', :todo; # comb a list is eval('(, ).comb(m:Perl5/\S*a\S*/)'), , 'comb a list', :todo; # needed: comb a filehandle # needed: captures in pattern return Match objects